|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59841 Returns false when decrypting empty text.
Submitted: 2011-07-08 07:38 UTC Modified: 2015-02-11 18:49 UTC
From: margus at sipria dot fi Assigned:
Status: Not a bug Package: gnupg (PECL)
PHP Version: 5.3.5 OS: Ubuntu Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
11 + 16 = ?
Subscribe to this entry?

 [2011-07-08 07:38 UTC] margus at sipria dot fi
Folloing code returns false when decrypting originally empty 

        $gpg = new gnupg();
        $gpg->adddecryptkey($fingerprint, $passphrase);
        $output = $gpg->decrypt($data);

$output will be false, but $gpg->geterror() returns false 
also, so you can check that no error has happened. Output 
should be empty string?.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-02-11 18:49 UTC]
-Status: Open +Status: Not a bug
 [2015-02-11 18:49 UTC]
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Oct 04 13:01:26 2023 UTC