mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01: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.
18 lines
257 B
PHP
18 lines
257 B
PHP
--TEST--
|
|
Bug #29253 (array_diff with $GLOBALS argument fails)
|
|
--FILE--
|
|
<?php
|
|
$zz = $GLOBALS;
|
|
$gg = 'afad';
|
|
var_dump(@array_diff_assoc($GLOBALS, $zz));
|
|
var_dump($gg);
|
|
?>
|
|
--EXPECTF--
|
|
array(2) {
|
|
["zz"]=>
|
|
%A
|
|
["gg"]=>
|
|
string(4) "afad"
|
|
}
|
|
string(4) "afad"
|