/
proc
/
3430793
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
pcre
/
tests
/
File Upload :
llllll
Current File: //proc/3430793/root/usr/local/lsws/phpbuild/php-8.0.7/ext/pcre/tests/bug78272.phpt
--TEST-- Bug #78272: calling preg_match() before pcntl_fork() will freeze child process --SKIPIF-- <?php if (!extension_loaded('pcntl')) die("skip pcntl extension required"); ?> --FILE-- <?php preg_match('/abc/', 'abcde', $r); $pid = pcntl_fork(); if ($pid === 0) { print "Child start\n"; preg_match('/abc/', 'abcde', $r); print_r($r); print "End child\n"; exit(0); } else { pcntl_waitpid($pid, $status); print "End Main\n"; exit(0); } ?> --EXPECT-- Child start Array ( [0] => abc ) End child End Main
Copyright ©2k19 -
Hexid
|
Tex7ure