Re: Declaration of Bar::__construct() must be compatible
| From: | Derick Rethans | Date: | Thu, 26 Feb 2004 08:31:54 +0000 |
| Subject: | Re: Declaration of Bar::__construct() must be compatible | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8160@lists.php.net to get a copy of this message | ||
On Thu, 26 Feb 2004, Andi Gutmans wrote:
> At 18:54 25/02/2004 -0500, Hans Lellelid wrote:
> >It seems now that PHP is no longer inconsistent, but it also seems that it
> >is impossible to override methods w/ incompatible signature. Is that a
> >correct assessment? This is a pretty big difference from PHP4,
> >then. Personally, I can live with it :) -- just want to make sure I
> >understand it correctly.
>
> You understand completely. It is incorrect to override methods w/
> incompatible signature. We don't check this in compatibility mode.
IMO even outside compat mode it should just give an E_STRICT error type
message. This is a bit too much breakage without a really good reason
IMO.
Derick