Date: 12/04/00
- Next message: Chuck Hagenbuch: "[PHP-DEV] date('r') on windows gets wrong timezone"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] Fwd: Re: [PHP-PEAR] PEAR::isError()"
- In reply to: Andi Gutmans: "Re: [PHP-DEV] Fwd: Re: [PHP-PEAR] PEAR::isError()"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] Fwd: Re: [PHP-PEAR] PEAR::isError()"
- Reply: Zeev Suraski: "Re: [PHP-DEV] Fwd: Re: [PHP-PEAR] PEAR::isError()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Quoting Andi Gutmans <andi <email protected>>:
> 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 <email protected>> "If you can't stand the heat, get out of the chicken!" - Baby Blues-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Chuck Hagenbuch: "[PHP-DEV] date('r') on windows gets wrong timezone"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] Fwd: Re: [PHP-PEAR] PEAR::isError()"
- In reply to: Andi Gutmans: "Re: [PHP-DEV] Fwd: Re: [PHP-PEAR] PEAR::isError()"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] Fwd: Re: [PHP-PEAR] PEAR::isError()"
- Reply: Zeev Suraski: "Re: [PHP-DEV] Fwd: Re: [PHP-PEAR] PEAR::isError()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

