Re: On constructors: BC Break and Class compiler Improvements
| From: | Pierre Joye | Date: | Tue, 06 Apr 2010 11:31:46 +0000 |
| Subject: | Re: On constructors: BC Break and Class compiler Improvements | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-47802@lists.php.net to get a copy of this message | ||
2010/4/6 Richard Quadling <rquadling@googlemail.com>:
> I've just done a quick check on PEAR/packages-all with regard to
> classes using __construct vs the class name.
>
> 818 classes have __construct
> 1511 use the class name as the constructor
> 3563 files don't have a constructor
>
> I excluded tests, examples and documentation (but some may have crept in).
You missed a critical part of this change:
When it is inside a Namespace.
I very much doubt that many PEAR packages actually use namespaces or
even 5.3 only (not badly meant).
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org