|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-12-19 04:14 UTC] ajf@php.net
[2015-12-19 04:14 UTC] ajf@php.net
-Status: Open
+Status: Verified
[2015-12-19 10:26 UTC] nikic@php.net
-Status: Verified
+Status: Not a bug
[2015-12-19 10:26 UTC] nikic@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 13:00:01 2025 UTC |
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)