mirror of
https://github.com/php/php-src.git
synced 2024-12-20 23:39:46 +08:00
17 lines
255 B
PHP
17 lines
255 B
PHP
--TEST--
|
|
Bug #61970 (Restraining __construct() access level in subclass gives a fatal error)
|
|
--FILE--
|
|
<?php
|
|
|
|
class Foo {
|
|
public function __construct(){}
|
|
}
|
|
|
|
class Bar extends Foo {
|
|
protected function __construct(){}
|
|
}
|
|
|
|
echo 'DONE';
|
|
--EXPECT--
|
|
DONE
|