Re: Class constructor

From: Date: Tue, 31 Jan 2006 14:36:31 +0000
Subject: Re: Class constructor
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-229552@lists.php.net to get a copy of this message
Yes, I noticed that PHP5 call the old way constructor, but what if in future version they drop this feature ? I think this is workaround for the problem . Or not ? On Tuesday January 31 2006 15:52, David Grant wrote: > Georgi, > > Drop __construct, PHP5 will call Test() anyway. > > >From http://uk.php.net/manual/en/language.oop5.decon.php: > > "For backwards compatibility, if PHP 5 cannot find a __construct() > function for a given class, it will search for the old-style constructor > function, by the name of the class." > > David > -- > David Grant > http://www.grant.org.uk/ > > http://pear.php.net/package/File_Ogg 0.2.1 > http://pear.php.net/package/File_XSPF 0.1.0 > > WANTED: Junior PHP Developer in Bristol, UK

« previous php.general (#229552) next »