mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
682b54f687
This has been deprecated in PHP 7.0 by https://wiki.php.net/rfc/remove_php4_constructors.
27 lines
316 B
PHP
27 lines
316 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
|