Skip to content

Commit 63c7b02

Browse files
committed
Fixed bug #52001 (Memory allocation problems after using variable variables)
1 parent afedcbb commit 63c7b02

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Zend/tests/bug52001.phpt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--TEST--
2+
Bug #52001 (Memory allocation problems after using variable variables)
3+
--FILE--
4+
<?php
5+
a(0,$$var);
6+
7+
$temp1=1;
8+
$temp2=2;
9+
var_dump($temp1);
10+
11+
function a($b,$c) {}
12+
?>
13+
--EXPECTF--
14+
Notice: Undefined variable: var in %sbug52001.php on line 2
15+
16+
Notice: Undefined variable: in %sbug52001.php on line 2
17+
int(1)

0 commit comments

Comments
 (0)