PHP PEAR CVS 36 RE PEAR CVS CVS PHP SRC PEAR PEAR PHP
Date: Thu, 3 Jul 2003 08:59:07 +0200

Subject: Re: [PEAR-CVS] cvs: php-src /pear PEAR.php
From: cox@no-spam (Tomas V.V.Cox)

On Thursday, July 3, 2003 8:54, Tomas V.V.Cox wrote:

> cox Thu Jul 3 02:54:26 2003 EDT
> Modified files: > /php-src/pear PEAR.php > Log:
> Atm php5 doesn't support this:
> function foo(&$a) {
> return new Bar;
> }

Sorry it's:

function &foo() {
return new Bar;
}

what isn't supported.

-- Tomas V.V.Cox mailto:cox@no-spam

Date: Fri, 4 Jul 2003 14:58:52 +0200

Subject: Re: [PEAR-CVS] cvs: php-src /pear PEAR.php
From: cox@no-spam (Tomas V.V.Cox)
On Friday, July 4, 2003 14:02, Pierre-Alain Joye wrote:

> On Thu, 3 Jul 2003 08:59:07 +0200
> "Tomas V.V.Cox" <cox@no-spam> wrote:

>> Sorry it's:
>> >> function &foo() {
>> return new Bar;
>> }
>> >> what isn't supported.

> Yup. What does that mean while it runs with php4?

> Is it the beginnig of a real difference between both branches, and the > beginning of safe MFH? ;)

For the case of raiseError() the change doesn't hurt too much, as it only would make the class return a copy of the new object instead of a reference. raiseError() it's called on errors, so the very small performance hit will only occur there.

-- Tomas V.V.Cox mailto:cox@no-spam