1--TEST--
2Accessing self::FOO in a free function
3--FILE--
4<?php
5function test() {
6    var_dump(self::FOO);
7}
8?>
9--EXPECTF--
10Fatal error: Cannot use "self" when no class scope is active in %s on line %d
11