From: Antony Dovgal Date: Wed, 4 Oct 2006 13:35:31 +0000 (+0000) Subject: add test for #39036 (reproducible with 5.1.6, but works fine in 5.2 and HEAD) X-Git-Tag: RELEASE_1_0_0RC1~1422 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ce3a350e448dbc6a9b5beb4741709c65c4709b7;p=php add test for #39036 (reproducible with 5.1.6, but works fine in 5.2 and HEAD) --- diff --git a/Zend/tests/bug39036.phpt b/Zend/tests/bug39036.phpt new file mode 100644 index 0000000000..017012fddf --- /dev/null +++ b/Zend/tests/bug39036.phpt @@ -0,0 +1,19 @@ +--TEST-- +Bug #39036 (Unsetting key of foreach() yields segmentation fault) +--FILE-- + $value) { + unset($$key); +} + +var_dump($key); + +echo "Done\n"; +?> +--EXPECTF-- +Notice: Undefined variable: key in %s on line %d +NULL +Done