Re: Declaration of Bar::__construct() must be compatible with that of Foo::__construct()

From: Date: Thu, 26 Feb 2004 02:00:08 +0000
Subject: Re: Declaration of Bar::__construct() must be compatible with that of Foo::__construct()
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-8139@lists.php.net to get a copy of this message
On Thu, 2004-02-26 at 02:13, Timm Friebe wrote: > On Thu, 2004-02-26 at 01:38, Marcus Boerger wrote: > > Hello Timm, > [...] > > > Should work #1, Bar::connect() adds an argument > > No the sugnature is incompatible. An instance of Foo cannot be called > > with Bar or Connector's connect() Signature. Hence Bar is not a Foo > > or Connector. > > Hrm, that's quite a (huge) BC break then. Maybe we'd all be happier with an E_STRICT warning for inheritance and an E_COMPILE_ERROR for interfaces implementation. - Timm

Attachment: [text/x-patch] zend_compile.diff
« previous php.internals (#8139) next »