Edit report at https://bugs.php.net/bug.php?id=38527&edit=1
ID: 38527 Updated by: larue...@php.net Reported by: phpbugs at thequod dot de Summary: Allow using superglobals as variable-variables -Status: Open +Status: Wont fix Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: Ubuntu Linux PHP Version: 5CVS-2006-08-20 (CVS) Block user comment: N Private report: N New Comment: Mark as won't fix, see #55493 Previous Comments: ------------------------------------------------------------------------ [2006-08-20 20:27:54] phpbugs at thequod dot de 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 this bug report at https://bugs.php.net/bug.php?id=38527&edit=1