mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2024-11-22 14:27:09 +00:00
parent
c2f35bc69a
commit
d8be544dea
1 changed files with 4 additions and 1 deletions
5
gnupg.c
5
gnupg.c
|
@ -1391,7 +1391,10 @@ PHP_FUNCTION(gnupg_import){
|
||||||
}
|
}
|
||||||
gpgme_data_release(in);
|
gpgme_data_release(in);
|
||||||
result = gpgme_op_import_result (intern->ctx);
|
result = gpgme_op_import_result (intern->ctx);
|
||||||
|
|
||||||
|
if(result->imports->result != GPG_ERR_NO_ERROR){
|
||||||
|
RETURN_FALSE();
|
||||||
|
}
|
||||||
array_init (return_value);
|
array_init (return_value);
|
||||||
add_assoc_long (return_value, "imported", result->imported);
|
add_assoc_long (return_value, "imported", result->imported);
|
||||||
add_assoc_long (return_value, "unchanged", result->unchanged);
|
add_assoc_long (return_value, "unchanged", result->unchanged);
|
||||||
|
|
Loading…
Reference in a new issue