|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-10-01 11:40 UTC] johannes@php.net
[2005-10-01 12:07 UTC] andrius dot steponavicius at gmail dot com
[2005-10-01 12:56 UTC] tony2001@php.net
[2005-10-01 13:04 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
Description: ------------ There is a bug while accessing superglobal variables by they names inside functions or methods... Reproduce code: --------------- function test() { var_dump($_REQUEST); var_dump(${'_REQUEST'}); $temp = '_REQUEST'; var_dump(${$temp}); } test(); Expected result: ---------------- array(...){...} array(...){...} array(...){...} Actual result: -------------- array(...){...} array(...){...} Notice: Undefined variable: _REQUEST in ... null