pcntl_strerror
Description
The pcntl_strerror of PCNTL for PHP retrieves the system error message associated with the given errno.
Syntax
pcntl_strerror( int $error_code ): string
Parameters
error_code
The error code.
Return
Returns the error description.
Examples
1 · error_code
<? $error_code = pcntl_get_last_error(); $return = pcntl_strerror($error_code); echo $return;
Success
2 · error
<? $flags = CLONE_NEWNS; pcntl_unshare($flags); $error_code = pcntl_get_last_error(); $return = pcntl_strerror($error_code); echo $return;
Operation not permitted
Links
Related
PCNTL
- pcntl_alarm
- pcntl_async_signals
- pcntl_errno
- pcntl_exec
- pcntl_fork
- pcntl_get_last_error
- pcntl_getpriority
- pcntl_rfork
- pcntl_setpriority
- pcntl_signal
- pcntl_signal_dispatch
- pcntl_signal_get_handler
- pcntl_sigprocmask
- pcntl_sigtimedwait
- pcntl_sigwaitinfo
- pcntl_unshare
- pcntl_wait
- pcntl_waitpid
- pcntl_wexitstatus
- pcntl_wifexited
- pcntl_wifsignaled
- pcntl_wifstopped
- pcntl_wstopsig
- pcntl_wtermsig