Annotation of embedaddon/php/tests/classes/final_ctor2.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ZE2 cannot override final old style ctor
! 3: --FILE--
! 4: <?php
! 5:
! 6: class Base
! 7: {
! 8: public final function Base()
! 9: {
! 10: }
! 11: }
! 12:
! 13: class Works extends Base
! 14: {
! 15: }
! 16:
! 17: class Extended extends Base
! 18: {
! 19: public function __construct()
! 20: {
! 21: }
! 22: }
! 23:
! 24: ReflectionClass::export('Extended');
! 25:
! 26: ?>
! 27: --EXPECTF--
! 28:
! 29: Fatal error: Cannot override final Base::Base() with Extended::__construct() in %sfinal_ctor2.php on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>