assigning to $this in constructor?

From: Date: Tue, 31 Dec 2002 19:04:49 +0000
Subject: assigning to $this in constructor?
Groups: php.general 
Request: Send a blank email to php-general+get-129786@lists.php.net to get a copy of this message
I think I was once able to assign to the $this reference in the constructor of a php class. I don't seem to be able to do this anymore. Is this new in 4.3? Is there anyway to alter what object is returned from a php class constructor? For instance, there might have been an error so you would return an error object instead of the requested object. Thanks, Matt Friedman

« previous php.general (#129786) next »