mirror of
https://github.com/php/php-src.git
synced 2024-12-21 16:00:18 +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
|