mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
213b666781
These error conditions throw in the function implementations, make the opcodes match.
30 lines
373 B
PHP
30 lines
373 B
PHP
--TEST--
|
|
Bug #47054 (BC break in static functions called as dynamic)
|
|
--FILE--
|
|
<?php
|
|
|
|
class C {
|
|
final static function s() {
|
|
print "Called class: " . get_called_class() . "\n";
|
|
}
|
|
}
|
|
class D extends C {
|
|
public function m() {
|
|
$this->s();
|
|
}
|
|
}
|
|
|
|
$d = new D();
|
|
$d->m();
|
|
|
|
C::s();
|
|
|
|
$c = new C();
|
|
$c->s();
|
|
|
|
?>
|
|
--EXPECT--
|
|
Called class: D
|
|
Called class: C
|
|
Called class: C
|