mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
28 lines
310 B
Plaintext
28 lines
310 B
Plaintext
|
--TEST--
|
||
|
Testing static call method using the original class name
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class foo {
|
||
|
static public function msg() {
|
||
|
print "hello\n";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
interface test { }
|
||
|
|
||
|
|
||
|
class_alias('foo', 'baz');
|
||
|
|
||
|
class bar extends baz {
|
||
|
public function __construct() {
|
||
|
foo::msg();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
new bar;
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
hello
|