Re: Designing for PHP4 with PHP5 in mind...

From: Date: Tue, 07 Jan 2003 19:15:00 +0000
Subject: Re: Designing for PHP4 with PHP5 in mind...
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-93228@lists.php.net to get a copy of this message
You can still use constructors that have the same name as the class, at least for the time being. Just tested it with 4.4.0-dev HEAD and ZE2. If you have both a method with the same name as the class and a method called __construct(), the method with the class name will be used as the constructor and __construct() won't be used at all. J Brian Moon wrote: > From what I understand, all OO code will have to be modified for PHP5. > Constructors for example and no longer named the same as the class name. > That alone means every class must be changed. I don't recall anyone > saying it would be BC either, but I could be wrong. > > Brian Moon > ------------- > dealnews.com > ------------- > phorum.org >

« previous php.dev (#93228) next »