]> granicus.if.org Git - php/commitdiff
Fixed bug #52001 (Memory allocation problems after using variable variables)
authorDmitry Stogov <dmitry@php.net>
Thu, 10 Jun 2010 09:13:22 +0000 (09:13 +0000)
committerDmitry Stogov <dmitry@php.net>
Thu, 10 Jun 2010 09:13:22 +0000 (09:13 +0000)
Zend/tests/bug52001.phpt [new file with mode: 0644]

diff --git a/Zend/tests/bug52001.phpt b/Zend/tests/bug52001.phpt
new file mode 100644 (file)
index 0000000..cf55d19
--- /dev/null
@@ -0,0 +1,17 @@
+--TEST--
+Bug #52001 (Memory allocation problems after using variable variables)
+--FILE--
+<?php
+a(0,$$var);
+
+$temp1=1;
+$temp2=2;
+var_dump($temp1);
+
+function a($b,$c) {}
+?>
+--EXPECTF--
+Notice: Undefined variable: var in %sbug52001.php on line 2
+
+Notice: Undefined variable:  in %sbug52001.php on line 2
+int(1)