php-src/Zend/tests/bug39036.phpt
Steph Fox 6d8760677d - killed off UEXPECT
- altered EXPECT for parser errors. This may or may not be a Good Thing.
2008-05-26 14:33:44 +00:00

20 lines
280 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