File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / classes / ctor_in_interface_02.phpt
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:14 2013 UTC (10 years, 11 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

--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 constr3::__construct($a) in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>