Re: Class constructor

From: Date: Tue, 31 Jan 2006 13:52:15 +0000
Subject: Re: Class constructor
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-229545@lists.php.net to get a copy of this message
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 (#229545) next »