1--TEST--
2Cannot use $GLOBALS as foreach result variable
3--FILE--
4<?php
5
6foreach ([1] as $GLOBALS) {}
7
8?>
9--EXPECTF--
10Fatal error: $GLOBALS can only be modified using the $GLOBALS[$name] = $value syntax in %s on line %d
11