mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 00:47:04 +03:00
Disable PHP GnuPG PECL when version < 1.5 see #325
This commit is contained in:
parent
05aae219dd
commit
9a63071292
1 changed files with 1 additions and 2 deletions
|
|
@ -25,8 +25,7 @@ class GnuPG
|
||||||
$this->homedir = $homedir;
|
$this->homedir = $homedir;
|
||||||
// \putenv("GNUPGHOME={$homedir}");
|
// \putenv("GNUPGHOME={$homedir}");
|
||||||
|
|
||||||
// if (\version_compare(\phpversion('gnupg'), '1.5', '>=')) {
|
if (\class_exists('gnupg') && \version_compare(\phpversion('gnupg'), '1.5', '>=')) {
|
||||||
if (\class_exists('gnupg')) {
|
|
||||||
$this->GnuPG = new \gnupg([
|
$this->GnuPG = new \gnupg([
|
||||||
// It is the file name of the executable program implementing this protocol which is usually path of the gpg executable.
|
// It is the file name of the executable program implementing this protocol which is usually path of the gpg executable.
|
||||||
// 'file_name' => '/usr/bin/gpg',
|
// 'file_name' => '/usr/bin/gpg',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue