(PECL gnupg >= 0.1)
gnupg_geterror —Returns the errortext, if a function fails
identifier
The gnupg identifier, from a call tognupg_init() orgnupg.
Returns an errortext, if an error has occurred, otherwisefalse
.
Example #1 Proceduralgnupg_geterror() example
<?php
$res=gnupg_init();
echognupg_geterror($res);
?>
Example #2 OOgnupg_geterror() example
<?php
$gpg= newgnupg();
echo$gpg->geterror();
?>