mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +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
|