1--TEST--
2forward_static_call() calling outside of the inheritance chain.
3--FILE--
4<?php
5
6class A
7{
8	const NAME = 'A';
9	public static function test() {
10		echo static::NAME, "\n";
11	}
12}
13
14class B extends A
15{
16	const NAME = 'B';
17
18	public static function test() {
19		echo self::NAME, "\n";
20		forward_static_call(array('parent', 'test'));
21	}
22}
23
24class C
25{
26	const NAME = 'C';
27
28	public static function test() {
29		echo self::NAME, "\n";
30		forward_static_call(array('B', 'test'));
31	}
32}
33
34A::test();
35echo "-\n";
36B::test();
37echo "-\n";
38C::test();
39
40?>
41===DONE===
42--EXPECTF--
43A
44-
45B
46B
47-
48C
49B
50B
51===DONE===
52