JonahChaos
New Member
Consider the following snippets of code:Exhibit A:\[code\]$_REQUEST = json_decode(stripslashes(json_encode($_REQUEST, JSON_HEX_APOS)), true);\[/code\]Exhibit B:\[code\]${'_REQUEST'} = json_decode(stripslashes(json_encode(${'_REQUEST'}, JSON_HEX_APOS)), true);\[/code\]Exhibit C:\[code\]${'_' . 'REQUEST'} = json_decode(stripslashes(json_encode(${'_' . 'REQUEST'}, JSON_HEX_APOS)), true);\[/code\]Both exhibit A and B work perfectly fine, exhibit C however displays a very strange error message:\[quote\] Notice: Undefined variable: _REQUEST\[/quote\]What makes it even more weird is that this only happens with the \[code\]$_REQUEST\[/code\] superglobal, if I try it with \[code\]$_GET\[/code\], \[code\]$_POST\[/code\] or \[code\]$_COOKIE\[/code\] all experiments work fine without raising error notices.I'm guessing this is a PHP bug? I'm running on \[code\]PHP 5.3.0\[/code\].