summaryrefslogtreecommitdiff
path: root/tests/classes/final_ctor3.phpt
blob: d37e864e2d267ad18cc084582d3a061c8bb92d25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Ensure implicit final inherited old-style constructor cannot be overridden.
--FILE--
<?php
  class A {
      final function A() { }
  }
  class B extends A {
  }
  class C extends B {
      function B() { }
  }
?>
--EXPECTF--
Fatal error: Cannot override final method A::B() in %s on line 9