mirror of
https://github.com/php/php-src.git
synced 2024-12-01 05:43:38 +08:00
26 lines
273 B
Plaintext
26 lines
273 B
Plaintext
|
--TEST--
|
||
|
Testing 'static::' and 'parent::' in calls
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class bar {
|
||
|
public function __call($a, $b) {
|
||
|
print "hello\n";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class foo extends bar {
|
||
|
public function __construct() {
|
||
|
static::bar();
|
||
|
parent::bar();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
new foo;
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
hello
|
||
|
hello
|