|
gnupg_geterrorinfoReturns the error info Description
array gnupg_geterrorinfo(resource
$identifier )Parameters
Return ValuesReturns an array with error info. Examples
Example #1 Procedural gnupg_geterrorinfo example
The above example will output: array(4) { ["generic_message"]=> bool(false) ["gpgme_code"]=> int(0) ["gpgme_source"]=> string(18) "Unspecified source" ["gpgme_message"]=> string(7) "Success" } Example #2 OO gnupg_geterrorinfo example
The above example will output: array(4) { ["generic_message"]=> string(14) "decrypt failed" ["gpgme_code"]=> int(117440570) ["gpgme_source"]=> string(5) "GPGME" ["gpgme_message"]=> string(7) "No data" } |