1--TEST--
2Cannot use() auto-global
3--FILE--
4<?php
5
6function test() {
7 $fn = function() use($GLOBALS) {
8 var_dump($GLOBALS);
9 };
10 $fn();
11}
12test();
13
14?>
15--EXPECTF--
16Fatal error: Cannot use auto-global as lexical variable in %s on line %d
17