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

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

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

--EXPECTF--
Fatal error: Access level to Bar::__construct() must be public (as in class Foo) in %s