Re: Declaration of Bar::__construct() must be compatible

From: Date: Fri, 27 Feb 2004 18:37:09 +0000
Subject: Re: Declaration of Bar::__construct() must be compatible
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-8240@lists.php.net to get a copy of this message
On Fri, 27 Feb 2004, Andi Gutmans wrote: > What I suggest is the following: > a) Don't check signature for constructors. > b) By default, don't check signature for inheritance *if* we're not > inheriting from an abstract class. If it is an abstract class we should > check the signature because it's a PHP 5 feature. > c) Add a new INI option (zend.strict_inheritance_checks) which does check > signature for methods (except for constructor). I don't like new INI > options but I don't think there's any way out. Sounds good to me. - Andrei

« previous php.internals (#8240) next »