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: Uncaught Error: Cannot call forward_static_call() when no class scope is active in %s:%d
22Stack trace:
23#0 %s(%d): forward_static_call(Array)
24#1 %s(%d): test()
25#2 {main}
26  thrown in %s on line %d
27