Re: Declaration of Bar::__construct() must be compatible
| From: | Marcus Boerger | Date: | Fri, 27 Feb 2004 18:50:11 +0000 |
| Subject: | Re: Declaration of Bar::__construct() must be compatible | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8243@lists.php.net to get a copy of this message | ||
Hello Timm,
Friday, February 27, 2004, 7:39:26 PM, you wrote:
> On Fri, 2004-02-27 at 14:39, Stig S. Bakken wrote:
>> On Fri, 2004-02-27 at 14:13, Derick Rethans wrote:
> [...]
>> What is worse is that many PHP 4 APIs need to be completely redesigned
>> for PHP 5, not only the guts of the class.
>>
>> IMHO method overloading the the only clean way out of this.
> Agreed, but I can live with the E_STRICT solution (whether or not compat
> mode is enabled), too. E_NOTICE (or E_WARNING) would be annoying to
> people who have existing code with E_ALL.
That's a good point. So for complete BC you drop E_STRICT and when you're
going to convert to rock solid PHP 5 code you switch E_STRICT on.
--
Best regards,
Marcus mailto:helly@php.net