RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c ...

From: Date: Mon, 06 Mar 2006 09:02:04 +0000
Subject: RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c ...
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4690@lists.php.net to get a copy of this message
What about an interfaces those extends other interface. The following code produces "Fatal error": <?php interface A { function __construct($a); } interface B extends A { function __construct($a, $b); } class C implements B { function __construct($a,$b) {} } ?> Thanks. Dmitry. > -----Original Message----- > From: Antony Dovgal [mailto:antony@zend.com] > Sent: Monday, March 06, 2006 11:45 AM > To: Dmitry Stogov > Cc: 'Marcus Boerger'; zend-engine-cvs@lists.php.net > Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c ... > > > On 06.03.2006 10:33, Dmitry Stogov wrote: > > Marcus, > > > > Don't roll it back. > > I just like make one note. > > If class implements interface with constructor then all its > subclasses > > may not change constructor's prototype. If this is OK for > all, then I > > haven't any other objections to the pacth. > > I'd say this is the whole point. > Interface developer should be able to specify constructor's > prototype (if needed) > and developers implementing this interface should not be able > to change it. > > -- > Wbr, > Antony Dovgal > >

« previous php.zend-engine.cvs (#4690) next »