1--TEST--
2Bug #71442 (forward_static_call crash)
3--FILE--
4<?php
5
6class A
7{
8    const NAME = 'A';
9    public static function test() {
10        $args = func_get_args();
11        echo static::NAME, " ".join(',', $args)." \n";
12    }
13}
14
15class B extends A
16{
17    const NAME = 'B';
18
19    public static function test() {
20        echo self::NAME, "\n";
21        forward_static_call(array('A', 'test'), 'more', 'args');
22        forward_static_call( 'test', 'other', 'args');
23    }
24}
25
26B::test('foo');
27
28function test() {
29    $args = func_get_args();
30    echo "C ".join(',', $args)." \n";
31}
32
33?>
34--EXPECT--
35B
36B more,args
37C other,args
38