summaryrefslogtreecommitdiff
path: root/Zend/tests/bug52001.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug52001.phpt')
-rw-r--r--Zend/tests/bug52001.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/Zend/tests/bug52001.phpt b/Zend/tests/bug52001.phpt
new file mode 100644
index 0000000..cf55d19
--- /dev/null
+++ b/Zend/tests/bug52001.phpt
@@ -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)