diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-12-02 17:47:33 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-01-06 12:46:24 +0100 |
commit | 3c68f38fdaec7a6f81f986a639bdd29716cf8f22 (patch) | |
tree | 5d1d8831cb016ba74d6ac6c6dc90419e536c48b6 /UPGRADING | |
parent | 73f989a83b8338cd8348134b6df8dded27fae300 (diff) | |
download | php-git-3c68f38fdaec7a6f81f986a639bdd29716cf8f22.tar.gz |
Restrict allowed usages of $GLOBALS
This restricts allowed usage of $GLOBALS, with the effect that
plain PHP arrays can no longer contain INDIRECT elements.
RFC: https://wiki.php.net/rfc/restrict_globals_usage
Closes GH-6487.
Diffstat (limited to 'UPGRADING')
-rw-r--r-- | UPGRADING | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -19,6 +19,15 @@ PHP 8.1 UPGRADE NOTES 1. Backward Incompatible Changes ======================================== +- Core: + . Access to the $GLOBALS array is now subject to a number of restrictions. + Read and write access to individual array elements like $GLOBALS['var'] + continues to work as-is. Read-only access to the entire $GLOBALS array also + continues to be supported. However, write access to the entire $GLOBALS + array is no longer supported. For example, array_pop($GLOBALS) will result + in an error. + RFC: https://wiki.php.net/rfc/restrict_globals_usage + - Fileinfo: . The fileinfo functions now accept and return, respectively, finfo objects instead of resources. |