mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
14 lines
275 B
PHP
14 lines
275 B
PHP
--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
|