dis-bench / src /php /php-src /Zend /tests /foreach /bug39036.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
284 Bytes
--TEST--
Bug #39036 (Unsetting key of foreach() yields segmentation fault)
--FILE--
<?php
$key = 'asdf';
foreach (get_defined_vars() as $key => $value) {
unset($$key);
}
var_dump($key);
echo "Done\n";
?>
--EXPECTF--
Warning: Undefined variable $key in %s on line %d
NULL
Done