dis-bench / src /php /php-src /ext /pcntl /tests /pcntl_rfork.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
338 Bytes
--TEST--
Test function pcntl_rfork() with no flag.
--EXTENSIONS--
pcntl
posix
--SKIPIF--
<?php
if (!function_exists('pcntl_rfork')) die('skip pcntl_rfork unavailable');
?>
--FILE--
<?php
echo "*** Test with no flags ***\n";
$pid = pcntl_rfork(0);
if ($pid == 0) {
echo "child";
exit;
}
?>
--EXPECT--
*** Test with no flags ***
child