php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #65342
Patch diff revision 2013-07-26 08:17 UTC by w00ty at tormail dot org

Patch diff for gnupg Bug #65342

Patch version 2013-07-26 08:17 UTC

Return to Bug #65342 | Download this patch
Patch Revisions:

Developer: w00ty@tormail.org

diff --git a/a/gnupg.c b/b/gnupg.c
index d8b89d7..a52cbe2 100644
--- a/a/gnupg.c
+++ b/b/gnupg.c
@@ -1389,7 +1389,10 @@ PHP_FUNCTION(gnupg_import){
 	}
 	gpgme_data_release(in);
 	result = gpgme_op_import_result (intern->ctx);
-
+	
+	if( result->imports->result ){
+		RETURN_FALSE();
+	}
 	array_init				(return_value);
     add_assoc_long          (return_value,  "imported",     	result->imported);
 	add_assoc_long			(return_value,	"unchanged",		result->unchanged);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 16:01:29 2024 UTC