xref: /php-src/tests/classes/final_ctor1.phpt (revision f8d79582)
1--TEST--
2ZE2 cannot override final __construct
3--FILE--
4<?php
5
6class Base
7{
8    public final function __construct()
9    {
10    }
11}
12
13class Works extends Base
14{
15}
16
17class Extended extends Base
18{
19    public function __construct()
20    {
21    }
22}
23
24?>
25--EXPECTF--
26Fatal error: Cannot override final method Base::__construct() in %s on line %d
27