mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
20 lines
241 B
PHP
20 lines
241 B
PHP
--TEST--
|
|
Bug #77613 (method visibility change)
|
|
--FILE--
|
|
<?php
|
|
class A {
|
|
public function __construct() {
|
|
static $foo;
|
|
}
|
|
}
|
|
|
|
class B extends A { }
|
|
|
|
class C extends B {
|
|
private function __construct() {}
|
|
}
|
|
?>
|
|
OK
|
|
--EXPECT--
|
|
OK
|