Bug #64186 [NEW]: Curly brace syntax not accessing superglobals?
| From: | michal at durooil dot com | Date: | Mon, 11 Feb 2013 00:22:08 +0000 |
| Subject: | Bug #64186 [NEW]: Curly brace syntax not accessing superglobals? | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-176554@lists.php.net to get a copy of this message | ||
From: michal at durooil dot com
Operating system: Windows 7 x64
PHP version: 5.4.11
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Curly brace syntax not accessing superglobals?
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 bug report at https://bugs.php.net/bug.php?id=64186&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64186&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64186&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64186&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=64186&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=64186&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64186&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=64186&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=64186&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=64186&r=support
Expected behavior: https://bugs.php.net/fix.php?id=64186&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=64186&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=64186&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=64186&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64186&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=64186&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=64186&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=64186&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64186&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64186&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=64186&r=mysqlcfg