dis-bench / src /php /php-src /ext /pcntl /tests /bug47566.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
303 Bytes
--TEST--
Bug #47566 (return value of pcntl_wexitstatus())
--EXTENSIONS--
pcntl
--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)