mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00: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.
12 lines
176 B
PHP
12 lines
176 B
PHP
--TEST--
|
|
Cannot by-ref assign to $GLOBALS (RHS)
|
|
--FILE--
|
|
<?php
|
|
|
|
$var = [];
|
|
$var =& $GLOBALS;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot acquire reference to $GLOBALS in %s on line %d
|