mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

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.
9 lines
109 B
PHP
9 lines
109 B
PHP
--TEST--
|
|
Add $GLOBALS to itself
|
|
--FILE--
|
|
<?php
|
|
$x = $GLOBALS + $GLOBALS;
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|