PHP 8.3.4 Released!

pcntl_wexitstatus

(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8)

pcntl_wexitstatus返回一个中断的子进程的返回代码

说明

pcntl_wexitstatus(int $status): int|false

返回一个中断的子进程的返回代码。这个函数仅在函数 pcntl_wifexited() 返回 true 时有效。

参数

status

参数 status 是提供给成功调用 pcntl_waitpid() 时的状态参数。

返回值

返回子进程返回代码。如果操作系统不支持该功能,将返回 false

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top