Re: Declaration of Bar::__construct() must be compatible
| From: | Adam Maccabee Trachtenberg | Date: | Fri, 27 Feb 2004 05:57:37 +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-8198@lists.php.net to get a copy of this message | ||
On Fri, 27 Feb 2004, George Schlossnagle wrote:
> This is an enormously huge bc break. Error-prone or not, I would wager
> that 95%+ of all php4 OO code exploits the ability to redefine the
> signature on inherited methods.
So far, I've identified that this breaks more than one important PEAR
package: XML_Parser, HTML_Quickform, as well as the PEAR package
manager (which has the side effect of breaking the PHP install
process).
Additionally, it borks ADODB. And I can't test Smarty and PEAR::SOAP
because right now they're dumping core. :)
> It also seems really against the spirit of PHP to enforce this sort
> of thing.
I strongly agree.
-adam
--
adam@trachtenberg.com
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!