assigning to $this in constructor

From: Date: Tue, 31 Dec 2002 22:10:52 +0000
Subject: assigning to $this in constructor
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3118@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.pear.general (#3118) next »