gnupg_geterror

(PECL gnupg >= 0.1)

gnupg_geterror関数が失敗した場合にエラー文字列を返す

説明

gnupg_geterror(resource $identifier): string

パラメータ

identifier

gnupg_init() あるいは gnupg のコールで得られた gnupg ID。

返り値

エラーが発生した場合にエラー文字列、それ以外の場合に false を返します。

例1 手続き型の gnupg_geterror() の例

<?php
$res 
gnupg_init();
echo 
gnupg_geterror($res);
?>

例2 オブジェクト指向の gnupg_geterror() の例

<?php
$gpg 
= new gnupg();
echo 
$gpg -> geterror();
?>

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top