1--TEST-- 2Bug #72154 (pcntl_wait/pcntl_waitpid array internal structure overwrite) 3--EXTENSIONS-- 4pcntl 5--FILE-- 6<?php 7$b = 666; 8var_dump($b); 9$c = &$b; 10$var5 = pcntl_wait($b,0,$c); 11unset($b); 12 13$b = 666; 14var_dump($b); 15$c = &$b; 16$var5 = pcntl_waitpid(0,$b,0,$c); 17unset($b); 18?> 19--EXPECT-- 20int(666) 21int(666) 22