php教程

pcntl_errno

(PHP 5 >= 5.3.4, PHP 7)

pcntl_errno别名 pcntl_get_last_error()

说明

此函数是该函数的别名: pcntl_get_last_error()

User Contributed Notes

renmengyang567 at gmail dot com 06-Apr-2019 04:43
<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;

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788