mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
26 lines
334 B
PHP
26 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
|