Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.6.9

Bug #17814 isRevoked flag not set
Submitted: 2010-08-25 17:03 UTC
From: alec Assigned: gauthierm
Status: Closed Package: Crypt_GPG (version SVN)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


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:
MUST BE VALID
Solve the problem : 37 - 22 = ?

 
 [2010-08-25 17:03 UTC] alec (Aleksander Machniak)
Description: ------------ isRevoked flag for user ID is never set. Simple patch: --- GPG.old 2010-08-19 22:18:05.000000000 +0200 +++ GPG.php 2010-08-25 14:52:20.012011938 +0200 @@ -814,8 +832,13 @@ } elseif ($lineExp[0] == 'uid') { $string = stripcslashes($lineExp[9]); // as per documentation - $key->addUserId(Crypt_GPG_UserId::parse($string)); + $user = new Crypt_GPG_UserId($string); + + if ($lineExp[1] == 'r') { + $user->setRevoked(true); + } + $key->addUserId($user); } } BTW, it would be nice to have isRevoked flag in Crypt_GPG_SubKey.

Comments

 [2010-08-25 17:46 UTC] gauthierm (Michael Gauthier)
isRevoked was added to The Crypt_GPG_SubKey in revision 302768. http://svn.php.net/viewvc?view=revision&revision=302768
 [2010-08-25 17:53 UTC] gauthierm (Michael Gauthier)
-Status: Open +Status: Closed -Assigned To: +Assigned To: gauthierm
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Patch committed in revision 302770. http://svn.php.net/viewvc?view=revision&revision=302770