mirror of
https://github.com/php/php-src.git
synced 2024-12-16 05:15:03 +08:00
3c68f38fda
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.
10 lines
109 B
PHP
10 lines
109 B
PHP
--TEST--
|
|
Add $GLOBALS to itself
|
|
--FILE--
|
|
<?php
|
|
$x = $GLOBALS + $GLOBALS;
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|