1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/tests/classes/final_ctor1.phpt
2020-02-03 22:52:20 +01:00

27 lines
334 B
PHP

--TEST--
ZE2 cannot override final __construct
--FILE--
<?php
class Base
{
public final function __construct()
{
}
}
class Works extends Base
{
}
class Extended extends Base
{
public function __construct()
{
}
}
?>
--EXPECTF--
Fatal error: Cannot override final method Base::__construct() in %s on line %d