summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/bug29253.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/array/bug29253.phpt')
-rwxr-xr-xext/standard/tests/array/bug29253.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/standard/tests/array/bug29253.phpt b/ext/standard/tests/array/bug29253.phpt
new file mode 100755
index 000000000..7d6cdaeb4
--- /dev/null
+++ b/ext/standard/tests/array/bug29253.phpt
@@ -0,0 +1,13 @@
+--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);
+?>
+--EXPECT--
+array(0) {
+}
+string(4) "afad"