Re: php5 class initialization

From: Date: Tue, 23 Mar 2004 18:15:30 +0000
Subject: Re: php5 class initialization
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-8690@lists.php.net to get a copy of this message
On Mar 23, 2004, at 1:11 PM, Rasmus Lerdorf wrote:
On Tue, 23 Mar 2004, Brad Fisher wrote: Sure, but George was asking for a case. I think the case where you have some existing PHP4 code that you want to make minimal changes to but you might have a little bit of PHP5-specific code to run in the constructor I could see this sort of chaining being something people want. I am not saying that is the way people should create a portable class, just that I could see such code popping up. And the question was what to do about the old-style constructor method. I think it would be very confusing if it was some sort of illegal method name that wasn't callable.
You sold me on the usefulness. George

« previous php.internals (#8690) next »