Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: posix_strerror - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

posix_times" width="11" height="7"/> <posix_setuid
Last updated: Thu, 31 May 2007

view this page in

posix_strerror

(PHP 4 >= 4.2.0, PHP 5)

posix_strerror — 指定したエラー番号に対応するシステムのエラーメッセージを取得する

説明

string posix_strerror ( int $errno )

指定したエラー番号 errno に対応する POSIX システムエラーメッセージを返します。 errno を取得するには、 posix_get_last_error() をコールします。

パラメータ

errno

posix_get_last_error() が返す POSIX エラー番号。0 に設定すると、文字列 "Success" が返されます。

返り値

エラーメッセージを表す文字列を返します。

例 1838. posix_strerror() の例

この例では、存在しないプロセスを殺そうとしています。 そして、その結果として発生したエラーに対応するメッセージを表示します。

<?php
posix_kill
(50,SIGKILL);
echo
posix_strerror(posix_get_last_error())."\n";
?>

上の例の出力は、たとえば 以下のようになります。


No such process

    

参考

posix_get_last_error()



add a note add a note User Contributed Notes
posix_strerror
There are no user contributed notes for this page.

posix_times" width="11" height="7"/> <posix_setuid
Last updated: Thu, 31 May 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites