summaryrefslogtreecommitdiff
path: root/Zend/tests/bug61970.phpt
blob: 9cdb87a01a1c59015aff5a722737e3b87890e479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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