mirror of
https://github.com/php/php-src.git
synced 2024-12-13 11:54:45 +08:00
20 lines
348 B
PHP
20 lines
348 B
PHP
--TEST--
|
|
Bug #47566 (return value of pcntl_wexitstatus())
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("pcntl")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
$pid = pcntl_fork();
|
|
if ($pid == -1) {
|
|
echo "Unable to fork";
|
|
exit;
|
|
} elseif ($pid) {
|
|
$epid = pcntl_waitpid(-1,$status);
|
|
var_dump(pcntl_wexitstatus($status));
|
|
} else {
|
|
exit(128);
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
int(128)
|