Re: php5 class initialization
| From: | Andi Gutmans | Date: | Mon, 22 Mar 2004 11:09:45 +0000 |
| Subject: | Re: php5 class initialization | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8645@lists.php.net to get a copy of this message | ||
At 11:36 AM 3/22/2004 +0100, Sebastian Bergmann wrote:
Andi Gutmans wrote: What would you expect? That if a new style constructor is defined we always use that and allow old-style as regular method? - Old-Style Constructor Only: Use it, but issue E_STRICT. - Old-Style and New-Style Constructor: Use the New-Style Constructor andI'm not sure if E_STRICT isn't a bit too aggressive. Most people will want to use E_STRICT IMO but have lots and lots of classes such as PEAR classes which use old-style constructors. I don't want them to turn off E_STRICT because of this. Andiissue an E_STRICT.