Edit report at http://bugs.php.net/bug.php?id=52001&edit=1
ID: 52001 Comment by: akorolyov at gmail dot com Reported by: lisio at bk dot ru Summary: Memory allocation problems after using variable variables Status: Open Type: Bug Package: Scripting Engine problem Operating System: Linux PHP Version: 5.3.2 New Comment: <?php $test = 0; $var = 'test'; f(0, $$var); $x = 1; $y = 2; echo $x; function f($a, $b) {} ?> In this case I receive correct result. Previous Comments: ------------------------------------------------------------------------ [2010-06-05 17:14:28] lisio at bk dot ru Description: ------------ After calling the function using a non-defined variable variable as a second parameter the interpreter goes crazy. Just reproduce the script on any of 5.3.* versions of PHP. Test script: --------------- <?php a(0,$$var); $temp1=1; $temp2=2; echo $temp1; function a($b,$c) {} ?> Expected result: ---------------- 1 Actual result: -------------- 2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52001&edit=1