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

Request #17816 Return complete IMPORT_RES status from import function
Submitted: 2010-08-25 17:30 UTC
From: alec Assigned:
Status: Open Package: Crypt_GPG (version SVN)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2010-08-25 17:30 UTC] alec (Aleksander Machniak)
Description: ------------ It's sometimes good to know a complete gpg response from importing function. E.g. when you import a revocation certs or sth. --- GPG.old 2010-08-19 22:18:05.000000000 +0200 +++ GPG.php 2010-08-25 15:28:01.266612007 +0200 @@ -1618,6 +1641,7 @@ $result['public_unchanged'] = intval($tokens[5]); $result['private_imported'] = intval($tokens[11]); $result['private_unchanged'] = intval($tokens[12]); + $result['result'] = array_slice($tokens, 1); break; } }

Comments

 [2010-08-25 17:46 UTC] alec (Aleksander Machniak)
...or provide separate import() and importFile() methods with extended result.