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

From: Date: Fri, 27 Feb 2004 09:54:28 +0000
Subject: Re: Declaration of Bar::__construct() must be compatible
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-8202@lists.php.net to get a copy of this message
AG>> c) Add a new INI option (zend.strict_inheritance_checks) which AG>> does check signature for methods (except for constructor). I AG>> don't like new INI options but I don't think there's any way AG>> out. There's a dilemma about this option. On one hand, it should be on by default. Otherwise, people would code for default configuration, it would work for default, but misteriously fail on some setups. If it's default, one would have to code so that signatures are OK and it would work on both default and non-default. But this way it makes the option a bit of pointless except as a way to preserve old code running. On the other hand, most big shops would have to set it to off when they move to PHP5 otherwise everybody would cry "PHP5 broke my code". Tricky. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.109

« previous php.internals (#8202) next »