RE: [PEAR-DEV] function &raiseError()
| From: | Lukas Smith | Date: | Sun, 28 Dec 2003 12:25:04 +0000 |
| Subject: | RE: [PEAR-DEV] function &raiseError() | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-24644@lists.php.net to get a copy of this message | ||
> From: Jan Schneider [mailto:jan@horde.org]
> Sent: Sunday, December 28, 2003 1:23 PM
> Zitat von Lukas Smith <smith@backendmedia.com>:
>
> > Hi,
> >
> > just wondering if we really need the return by reference there?
>
> Yes, it's faster (in PHP4) and you might return another object in the user
> info property of the PEAR_Error.
Ok then there are a bunch of places in all sorts of pear packages where we
should then probably use =& (like in the DB package).
Regards,
Lukas