note 130357 added to reserved.variables.globals
| From: | Anonymous | Date: | Tue, 10 Jun 2025 07:51:19 +0000 |
| Subject: | note 130357 added to reserved.variables.globals | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-222211@lists.php.net to get a copy of this message | ||
In older versions of PHP, the $GLOBALS array does not automatically include other superglobal arrays
such as $_POST, $_GET, $_COOKIE, $_SESSION, $_FILES, $_ENV, $_REQUEST, or $_SERVER.
It only contains references to global variables explicitly declared in the global scope.
If you're working with legacy code, keep in mind that you'll need to access superglobals
directly (e.g., $_POST['name']) instead of expecting them to appear inside $GLOBALS.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 81.10.103.168)
----
Manual Page -- https://php.net/manual/en/reserved.variables.globals.php
Edit -- https://main.php.net/note/edit/130357
Del: integrated -- https://main.php.net/note/delete/130357/integrated
Del: useless -- https://main.php.net/note/delete/130357/useless
Del: bad code -- https://main.php.net/note/delete/130357/bad+code
Del: spam -- https://main.php.net/note/delete/130357/spam
Del: non-english -- https://main.php.net/note/delete/130357/non-english
Del: in docs -- https://main.php.net/note/delete/130357/in+docs
Del: other reasons-- https://main.php.net/note/delete/130357
Reject -- https://main.php.net/note/reject/130357
Search -- https://main.php.net/manage/user-notes.php