summaryrefslogtreecommitdiff
path: root/Zend/tests/restrict_globals/invalid_assign.phpt
blob: c42cc9e1f94ad869b2be6b5ae83b156fcb86a82a (plain)
1
2
3
4
5
6
7
8
9
10
--TEST--
Cannot assign to $GLOBALS
--FILE--
<?php

$GLOBALS = [];

?>
--EXPECTF--
Fatal error: $GLOBALS can only be modified using the $GLOBALS[$name] = $value syntax in %s on line %d