Req #17816 [Opn]: Return complete IMPORT_RES status from import function
| From: | alec at alec dot pl | Date: | Wed, 25 Aug 2010 13:46:41 +0000 |
| Subject: | Req #17816 [Opn]: Return complete IMPORT_RES status from import function | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-4670@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=17816&edit=1
ID: 17816
Updated by: alec@alec.pl
Reported By: alec at alec dot pl
Summary: Return complete IMPORT_RES status from import
function
Status: Open
Type: Feature/Change Request
Package: Crypt_GPG
Package Version: SVN
PHP Version: Irrelevant
Roadmap Versions:
New Comment:
...or provide separate import() and importFile() methods with extended
result.
Previous Comments:
------------------------------------------------------------------------
[2010-08-25 13:30:27] alec
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;
}
}
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=17816&edit=1