posix_strerror
(PHP 4 >= 4.2.0, PHP 5)
posix_strerror — Belirtilen hatanum ile ilgili sistem hata iletisini döndürür
Açıklama
string posix_strerror
( int
$hatanum
)
Belirtilen hatanum ile ilgili sistem hata iletisini
döndürür. hatanum,
posix_get_last_error() işlevinden dönmüş bir değer
olabilir.
Değiştirgeler
-
hatanum -
posix_get_last_error() işlevinden dönmüş bir POSIX hata numarası. 0 belirtilirse "Success" dizgesi döner.
Dönen Değerler
Hata iletisini bir dizge olarak döndürür.
Örnekler
Örnek 1 - posix_strerror() örneği
Bu örnekte çalışmayan bir süreç öldürülmeye çalışılacak ve dönen hata iletisi gösterilecektir.
<?php
posix_kill(50,SIGKILL);
echo posix_strerror(posix_get_last_error())."\n";
?>
Yukarıdaki örnek şuna benzer bir çıktı üretir:
No such process
Ayrıca Bakınız
- posix_get_last_error() - Başarısız olan son POSIX işlevinden atanan hata numarasını döndürür
There are no user contributed notes for this page.
