Re: PHP5: Class behavior: method overloading
| From: | Derick Rethans | Date: | Thu, 26 Feb 2004 19:06:55 +0000 |
| Subject: | Re: PHP5: Class behavior: method overloading | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8179@lists.php.net to get a copy of this message | ||
On Thu, 26 Feb 2004, Vivian Steller wrote:
> Fatal error: Declaration of MyClass::test() must be compatible with that of
> MyParent::test() in ... on line 3
>
>
> I think that this is a nice feature in the face of "compatibility", but may
> cause in a complete restructure of existing class trees. The consequence is
> a bad :( backward compatibility!! Personally I think it would be a good
> solution to set an option in the configuration or something like this.
I'm afraid it even people without using a release already run into these
problems the first day, then it is probably an issue for a LOT of
people. Pretty please put this in E_STRICT?
regards,
Derick