summaryrefslogtreecommitdiff
path: root/tests/classes/ctor_in_interface_02.phpt
blob: a0dfe87788cec0c0b59123ea68290dabe0651ea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--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: Can't inherit abstract function constr3::__construct() (previously declared abstract in constr1) in %s on line %d