1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 02:02:32 +01:00
Files
archived-php-src/tests/classes/final_ctor3.phpt

16 lines
300 B
PHP

--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