File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / classes / ctor_in_interface_01.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 6 months ago) by misho
Branches: php, MAIN
CVS tags: v5_3_10, HEAD
php

--TEST--
ZE2 A class constructor must keep the signature of an interface
--FILE--
<?php
interface constr
{
	function __construct();
}

class implem implements constr
{
	function __construct($a)
	{
	}
}

?>
--EXPECTF--
Fatal error: Declaration of implem::__construct() must be compatible with that of constr::__construct() in %s on line %d

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