1--TEST--
2mixed forward_static_call_array ( callable $function , array $parameters );
3--CREDITS--
4marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br
5--SKIPIF--
6<?php
7if (phpversion() < "5.3.0") {
8    die('SKIP php version so lower.');
9}
10?>
11--FILE--
12<?php
13
14function test() {
15    $args = func_get_args();
16    echo "C " . join(',', $args) . " \n";
17}
18
19class A {
20
21    const NAME = 'A';
22
23    public static function test() {
24        $args = func_get_args();
25        echo static::NAME, " " . join(',', $args) . " \n";
26    }
27
28}
29
30class B extends A {
31
32    const NAME = 'B';
33
34    public static function test() {
35        echo self::NAME, "\n";
36        forward_static_call_array(array('A', 'test'), array('more', 'args'));
37        forward_static_call_array('test', array('other', 'args'));
38    }
39
40}
41
42B::test('foo');
43?>
44--EXPECT--
45B
46B more,args
47C other,args
48