php-src/Zend/tests/bug39036.phpt
Antony Dovgal dc22b7d4a5 add test
2006-10-04 13:35:51 +00:00

20 lines
281 B
PHP

--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--
Notice: Undefined variable: key in %s on line %d
NULL
Done