bug39036.phpt 281 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
--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