xref: /php-src/ext/standard/tests/array/bug29253.phpt (revision 3c68f38f)
1--TEST--
2Bug #29253 (array_diff with $GLOBALS argument fails)
3--FILE--
4<?php
5$zz = $GLOBALS;
6$gg = 'afad';
7var_dump(@array_diff_assoc($GLOBALS, $zz));
8var_dump($gg);
9?>
10--EXPECTF--
11array(2) {
12  ["zz"]=>
13  %A
14  ["gg"]=>
15  string(4) "afad"
16}
17string(4) "afad"
18