/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
pcntl
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/pcntl/tests/bug73783.phpt
--TEST-- Bug #73783: (SIG_IGN needs to be set to prevent syscals from returning early) --SKIPIF-- <?php if (!extension_loaded('pcntl')) die('skip pcntl extension not available'); elseif (!extension_loaded('posix')) die('skip posix extension not available'); ?> --FILE-- <?php pcntl_signal(SIGCHLD, SIG_IGN); switch(pcntl_fork()) { case 0: exit; break; } $before = microtime(true); sleep(1); if (microtime(true) - $before >= 0.8) { echo "working\n"; } else { echo "failed\n"; } ?> --EXPECT-- working
Copyright ©2k19 -
Hexid
|
Tex7ure