summaryrefslogtreecommitdiff
path: root/Zend/tests/restrict_globals/invalid_append.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/restrict_globals/invalid_append.phpt')
-rw-r--r--Zend/tests/restrict_globals/invalid_append.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/restrict_globals/invalid_append.phpt b/Zend/tests/restrict_globals/invalid_append.phpt
new file mode 100644
index 0000000000..8e8b99fb9b
--- /dev/null
+++ b/Zend/tests/restrict_globals/invalid_append.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Cannot append to $GLOBALS
+--FILE--
+<?php
+
+$GLOBALS[] = 1;
+
+?>
+--EXPECTF--
+Fatal error: Cannot append to $GLOBALS in %s on line %d