Bug #52001 [NEW]: Memory allocation problems after using variable variables
From:
Operating system: Linux
PHP version: 5.3.2
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Memory allocation problems after using variable variables
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 bug report at http://bugs.php.net/bug.php?id=52001&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52001&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52001&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52001&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52001&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52001&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52001&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52001&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52001&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52001&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52001&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52001&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52001&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52001&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52001&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52001&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52001&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52001&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52001&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52001&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52001&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52001&r=mysqlcfg
Thread (12 messages)
- lisio at bk dot ru
- akorolyov at gmail dot comBug #52001 [Com]: Memory allocation problems after using variable variables
- boldin dot pavel at gmail dot comBug #52001 [Com]: Memory allocation problems after using variable variables
- boldin dot pavel at gmail dot comBug #52001 [Com]: Memory allocation problems after using variable variables
- boldin dot pavel at gmail dot comBug #52001 [Com]: Memory allocation problems after using variable variables
- boldin dot pavel at gmail dot comBug #52001 [Com]: Memory allocation problems after using variable variables
- boldin dot pavel at gmail dot comBug #52001 [Com]: Memory allocation problems after using variable variables
- boldin dot pavel at gmail dot comBug #52001 [Com]: Memory allocation problems after using variable variables
- boldin dot pavel at gmail dot comBug #52001 [Com]: Memory allocation problems after using variable variables
- tony2001@php.netBug #52001 [Opn->Asn]: Memory allocation problems after using variable variables
- boldin dot pavel at gmail dot comBug #52001 [Com]: Memory allocation problems after using variable variables
- dmitry@php.netBug #52001 [Asn->Csd]: Memory allocation problems after using variable variables