mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
36 lines
537 B
PHP
Executable File
36 lines
537 B
PHP
Executable File
--TEST--
|
|
ZE2 A class constructor must keep the signature of all interfaces
|
|
--FILE--
|
|
<?php
|
|
interface constr1
|
|
{
|
|
function __construct();
|
|
}
|
|
|
|
interface constr2 extends constr1
|
|
{
|
|
}
|
|
|
|
class implem12 implements constr2
|
|
{
|
|
function __construct()
|
|
{
|
|
}
|
|
}
|
|
|
|
interface constr3
|
|
{
|
|
function __construct($a);
|
|
}
|
|
|
|
class implem13 implements constr1, constr3
|
|
{
|
|
function __construct()
|
|
{
|
|
}
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Declaration of implem13::__construct() must be compatible with that of constr3::__construct() in %sctor_in_interface_02.php on line %d
|