Re: php5 class initialization
| From: | Sebastian Bergmann | Date: | Mon, 22 Mar 2004 10:36:13 +0000 |
| Subject: | Re: php5 class initialization | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8644@lists.php.net to get a copy of this message | ||
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.
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/