1--TEST--
2forward_static_call() from outside of a class method.
3--FILE--
4<?php
5
6class A
7{
8	public static function test() {
9		echo "A\n";
10	}
11}
12
13function test() {
14	forward_static_call(array('A', 'test'));
15}
16
17test();
18
19?>
20--EXPECTF--
21Fatal error: Cannot call forward_static_call() when no class scope is active in %s on line %d
22