mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
20 lines
281 B
Plaintext
20 lines
281 B
Plaintext
|
--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
|