Re: php5 class initialization

From: Date: Wed, 24 Mar 2004 10:04:24 +0000
Subject: Re: php5 class initialization
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17  Groups: php.internals 
Request: Send a blank email to internals+get-8747@lists.php.net to get a copy of this message
Rasmus Lerdorf wrote:
treated like a normal method in every way. In a few years when people who have never seen PHP4 happen to create a method with the same name as the class would get very confused if it didn't work I would think.
Good point. I'd even extend that to allow __construct being called as a normal method too. After all I could also build your example the other way around: An object with some special code for PHP4. But more importantly it is orthogonal and simple to be able to call everything which is declared as function ...() in a class. - Chris

« previous php.internals (#8747) next »