Bug #64186 [Opn->Nab]: Curly brace syntax not accessing superglobals?
| From: | johannes@php.net | Date: | Wed, 13 Feb 2013 14:43:07 +0000 |
| Subject: | Bug #64186 [Opn->Nab]: Curly brace syntax not accessing superglobals? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-176604@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64186&edit=1
ID: 64186
Updated by: johannes@php.net
Reported by: michal at durooil dot com
Summary: Curly brace syntax not accessing superglobals?
-Status: Open
+Status: Not a bug
Type: Bug
Package: Scripting Engine problem
Operating System: Windows 7 x64
PHP Version: 5.4.11
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
This is to to just-in-time initialization of super globals. You either neet a direct call to that
same super global in the same function or have to disable this optimization by setting
auto_globals_jit in php.ini
Previous Comments:
------------------------------------------------------------------------
[2013-02-11 00:22:08] michal at durooil dot com
Description:
------------
This looks really weird to me.
Test script:
---------------
// works well
print_r(${'_GET'});
// this not however
// returns notice: "Undefined variable: _GET"
$name = '_GET';
print_r(${$name});
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64186&edit=1