|
pcntl_get_last_errorRetrieve the error number set by the last pcntl function which failed Description
int pcntl_get_last_error()
Retrieve the error number ( ParametersThis function has no parameters. Return Values
Returns the error number ( ExamplesExample #1 pcntl_get_last_error example This example will attempt to wait on child processes in a situation where no child process exists, then will print out the corresponding error message.
The above example will output something similar to: pcntl_wait failed with errno 10: No child processes See Also
|