title: PHP gnupg enrypt works but decrypt not
body: <p>i'm about to use gnupg to encrypt and decrypt files. The strange thing is, encrypt works fine, but decrypt always returns false.</p>
  
  <p>Here a simple php script encrypting and decrypting content:</p>
  
  <pre><code>$content = 'test text';
  putenv("GNUPGHOME=/PATH_TO_GPG_PATH");
  $gpg = new gnupg();
  $gpg-&gt;addencryptkey("FINGERPRINT");
  $enc = $gpg-&gt;encrypt($content);
  
  var_dump($enc);
  
  $gpgD = new gnupg();
  $gpgD-&gt;adddecryptkey("FINGERPRINT","PASSPHRASE");
  $plain = $gpgD-&gt;decrypt($enc);
  var_dump($plain);
  </code></pre>
  
  <p>Versions</p>
  
  <p><strong>Debian packages</strong></p>
  
  <p>gpgv                                   1.4.18-7</p>
  
  <p>libgpgme11:amd64                       1.5.1-6</p>
  
  <p><strong>pecl</strong></p>
  
  <p>Package Version State
  gnupg   1.4.0   stable</p>
  
  <p><strong>PHP version:</strong> PHP 7.1.11-1+0~20171027135825.10+jessie~1.gbp2e638d</p>
  
  <p>Anyone experienced this problem already? I'm out of ideas.
  Thank you in advance.</p>