File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / classes / final_ctor3.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 5 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--TEST--
Ensure implicit final inherited old-style constructor cannot be overridden.
--FILE--
<?php
  class A {
      final function A() { }
  }
  class B extends A {
      function A() { }
  }
?>
--EXPECTF--
Fatal error: Cannot override final method A::A() in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>