summaryrefslogtreecommitdiff
path: root/Zend/tests/globals_005.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/globals_005.phpt')
-rw-r--r--Zend/tests/globals_005.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/Zend/tests/globals_005.phpt b/Zend/tests/globals_005.phpt
new file mode 100644
index 0000000000..27e26610b2
--- /dev/null
+++ b/Zend/tests/globals_005.phpt
@@ -0,0 +1,16 @@
+--TEST--
+$GLOBALS resize
+--FILE--
+<?php
+function foo() {
+ for ($i = 0; $i < 100; $i++) {
+ $GLOBALS["A". $i] = 1; //trigger resize
+ }
+ return "ops";
+}
+
+$GLOBALS[foo()] = "ops";
+?>
+DONE
+--EXPECT--
+DONE