Bug #70586 [NEW]: When i try ${'_'.'POST'} i get: Notice: Undefined variable: _POST in

From: Date: Fri, 25 Sep 2015 20:46:05 +0000
Subject: Bug #70586 [NEW]: When i try ${'_'.'POST'} i get: Notice: Undefined variable: _POST in
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196249@lists.php.net to get a copy of this message
From: DAVIDhaker at yandex dot ru Operating system: Windows 10 Pro x64 PHP version: 5.6.14RC1 Package: Variables related Bug Type: Bug Bug description:When i try ${'_'.'POST'} i get: Notice: Undefined variable: _POST in Description: ------------ When i try ${'_'.'POST'} in object __call i get: Notice: Undefined variable: _POST in ... Test script: --------------- <?php class A { public function __call($method, $args){ var_dump($_POST, ${'_POST'}, ${'_'.'POST'}, '_POST' == '_'.'POST', $_POST == ${'_POST'}); } } $class = new A(); $class->test(); Expected result: ---------------- array(0) { } array(0) { } NULL bool(true) bool(true) -- Edit bug report at https://bugs.php.net/bug.php?id=70586&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70586&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70586&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70586&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70586&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70586&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70586&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70586&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70586&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70586&r=support Expected behavior: https://bugs.php.net/fix.php?id=70586&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70586&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70586&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70586&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70586&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70586&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70586&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70586&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70586&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70586&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70586&r=mysqlcfg

« previous php.bugs (#196249) next »