diff options
Diffstat (limited to 'Zend/tests/restrict_globals/invalid_unset.phpt')
-rw-r--r-- | Zend/tests/restrict_globals/invalid_unset.phpt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/restrict_globals/invalid_unset.phpt b/Zend/tests/restrict_globals/invalid_unset.phpt new file mode 100644 index 0000000000..781388b9b2 --- /dev/null +++ b/Zend/tests/restrict_globals/invalid_unset.phpt @@ -0,0 +1,10 @@ +--TEST-- +Cannot unset $GLOBALS +--FILE-- +<?php + +unset($GLOBALS); + +?> +--EXPECTF-- +Fatal error: $GLOBALS can only be modified using the $GLOBALS[$name] = $value syntax in %s on line %d |