Description
This function is an alias of: pcntl_strerror()
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения для управления процессами программ
- Process Control
- pcntl_alarm
- pcntl_errno
- pcntl_exec
- pcntl_fork
- pcntl_get_last_error
- pcntl_getpriority
- pcntl_setpriority
- pcntl_signal_dispatch
- pcntl_signal
- pcntl_sigprocmask
- pcntl_sigtimedwait
- pcntl_sigwaitinfo
- pcntl_strerror
- pcntl_wait
- pcntl_waitpid
- pcntl_wexitstatus
- pcntl_wifexited
- pcntl_wifsignaled
- pcntl_wifstopped
- pcntl_wstopsig
- pcntl_wtermsig
Коментарии
<explain>
This example installs an alarm signal, but the callback function does not exist,This will set the last error. Then we will print out the last error.
<?php
set_error_handler(function(){});
pcntl_signal(SIGALRM,'sig_handler',false);
print 'Your error returned was (Code):'.pcntl_get_last_error().PHP_EOL;
print 'Your error info:'.pcntl_strerror(pcntl_get_last_error()).PHP_EOL;