38 lines
615 B
PHP
38 lines
615 B
PHP
--TEST--
|
|
Bug #71442 (forward_static_call crash)
|
|
--FILE--
|
|
<?php
|
|
|
|
class A
|
|
{
|
|
const NAME = 'A';
|
|
public static function test() {
|
|
$args = func_get_args();
|
|
echo static::NAME, " ".join(',', $args)." \n";
|
|
}
|
|
}
|
|
|
|
class B extends A
|
|
{
|
|
const NAME = 'B';
|
|
|
|
public static function test() {
|
|
echo self::NAME, "\n";
|
|
forward_static_call(array('A', 'test'), 'more', 'args');
|
|
forward_static_call( 'test', 'other', 'args');
|
|
}
|
|
}
|
|
|
|
B::test('foo');
|
|
|
|
function test() {
|
|
$args = func_get_args();
|
|
echo "C ".join(',', $args)." \n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
B
|
|
B more,args
|
|
C other,args
|