Re: Fwd: Re: [PHP-PEAR] PEAR::isError()
| From: | Chuck Hagenbuch | Date: | Mon, 04 Dec 2000 21:01:04 +0000 |
| Subject: | Re: Fwd: Re: [PHP-PEAR] PEAR::isError() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-40041@lists.php.net to get a copy of this message | ||
Quoting Andi Gutmans <andi@zend.com>:
> Why does it make sense to send constants by reference?
It doesn't, unless you mean that the boolean value true (I capitalized it in a
mistaken attempt to add clarity; sorry) is a constant. If you have a method
which returns true on success and an error object on failure, it would be nice
to be able to pass that to PEAR::isError(). However, as things stand, we can
only do that if PEAR::isError() doesn't take parameters by reference, which
means that we get a performance hit every time it _is_ called with an object.
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
"If you can't stand the heat, get out of the chicken!" - Baby Blues