summaryrefslogtreecommitdiff
path: root/Zend/tests/bug61970_2.phpt
blob: d1e11e94070f38391959b6d45e73b620d8d30875 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #61970 (Restraining __construct() access level in subclass gives a fatal error - stays when inheriting implemented abstract)
--FILE--
<?php

abstract class Foo {
    abstract public function __construct();
}

class Bar extends Foo {
    public function __construct(){}
}

class Baz extends Bar {
    protected function __construct(){}
}
--EXPECTF--
Fatal error: Access level to Baz::__construct() must be public (as in class Bar) in %s