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