dis-bench / src /php /php-src /ext /pcntl /tests /bug72154.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
304 Bytes
--TEST--
Bug #72154 (pcntl_wait/pcntl_waitpid array internal structure overwrite)
--EXTENSIONS--
pcntl
--FILE--
<?php
$b = 666;
var_dump($b);
$c = &$b;
$var5 = pcntl_wait($b,0,$c);
unset($b);
$b = 666;
var_dump($b);
$c = &$b;
$var5 = pcntl_waitpid(0,$b,0,$c);
unset($b);
?>
--EXPECT--
int(666)
int(666)