PHP 4.0 Bug #9253: Class constructors can't return values

From: Date: Wed, 14 Feb 2001 10:23:05 +0000
Subject: PHP 4.0 Bug #9253: Class constructors can't return values
Groups: php.dev 
Request: Send a blank email to php-dev+get-46541@lists.php.net to get a copy of this message
From: stefan.p@noos.fr Operating system: All PHP version: 4.0.4pl1 PHP Bug Type: Feature/Change Request Bug description: Class constructors can't return values Class constructors can't abort instance creation, for example by returning false... This leads to a lot of "if (! $newobj->status)" crap. Why is that ? I found a message on the PHP3 mailing list about this, but it's still not there. -- Edit Bug report at: http://bugs.php.net/?id=9253&edit=1

« previous php.dev (#46541) next »