![]() ![]() | ![]() |
1.1 ! misho 1: --TEST-- ! 2: Ensure implicit final inherited old-style constructor cannot be overridden. ! 3: --FILE-- ! 4: <?php ! 5: class A { ! 6: final function A() { } ! 7: } ! 8: class B extends A { ! 9: function A() { } ! 10: } ! 11: ?> ! 12: --EXPECTF-- ! 13: Fatal error: Cannot override final method A::A() in %s on line %d