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 and
    issue an E_STRICT.

I'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.


Andi

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to