From: phpbugs at thequod dot de Operating system: Ubuntu Linux PHP version: 5CVS-2006-08-20 (CVS) PHP Bug Type: Feature/Change Request Bug description: Allow using superglobals as variable-variables
Description: ------------ The superglobals cannot get used as "variable-variables" in a function. This is documented here: http://www.php.net/manual/en/language.variables.variable.php Therefor this is a feature request, to change this. Reproduce code: --------------- $g = '_GET'; var_dump( $$g ); function f() { $g = "_GET"; var_dump($$g); } f(); Expected result: ---------------- array(0) { } array(0) { } Actual result: -------------- array(0) { } Notice: Undefined variable: _GET in X NULL -- Edit bug report at http://bugs.php.net/?id=38527&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38527&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38527&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38527&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38527&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38527&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38527&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38527&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38527&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38527&r=support Expected behavior: http://bugs.php.net/fix.php?id=38527&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38527&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38527&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38527&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38527&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38527&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38527&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38527&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38527&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38527&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38527&r=mysqlcfg
