function bar() { $x = array('y' => junk()); $x['x'] += 1; $val = $x['x']; var_dump(is_null($val)); var_dump(is_array($val)); }
function bar() { $y = 'heyo'; $x = array('y' => junk()); $x['x']->hehe =& $y; $y = $x['x']->hehe; $val = $x['x']; var_dump(is_object($y)); var_dump(is_null($val)); var_dump(is_array($x)); }
function bar() { $y = null; $x = array('z' => junk()); unset($x['z']); $val = $x['z']; var_dump(is_null($val)); var_dump(is_int($val)); var_dump(is_array($x)); var_dump($x); }
function bar() { $y = null; $x = array('z' => junk()); $x['z'] =& $y; $y = 'heh'; $val = $x['z']; var_dump(is_null($val)); var_dump(is_array($val)); var_dump(is_array($x)); var_dump($x); }
function bar() { $x = array('x' => array('y' => junk())); $x['x']['y']++; $val = $x['x']; $val2 = $x['x']['y']; var_dump(is_null($val)); var_dump(is_array($val)); var_dump(is_null($val2)); var_dump(is_array($val2)); var_dump(is_array($x)); var_dump($x); }
function bar() { $y = null; $x = array('z' => junk()); $x['x']['y'] =& $y; $val = $x['x']; $val2 = $x['x']['y']; var_dump(is_null($val)); var_dump(is_array($val)); var_dump(is_null($val2)); var_dump(is_array($val2)); var_dump(is_array($x)); var_dump($x); }
function bar() { $y = null; $x = array('l' => junk()); $y =& $x['z']['k']; $y = 'heh'; $val = $x['z']; $val2 = $x['z']['k']; var_dump(is_null($val)); var_dump(is_array($val)); var_dump(is_null($val2)); var_dump(is_array($val2)); var_dump(is_array($x)); var_dump($x); }