Re: Re: DB patch: Only variables or references can be returned by reference

From: Date: Thu, 28 Aug 2003 07:54:33 +0000
Subject: Re: Re: DB patch: Only variables or references can be returned by reference
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-20720@lists.php.net to get a copy of this message
I thought Zeev had promised to fix that ... Regards Alan nicos@php.net wrote:
"Analysis & Solutions" <danielc@analysisandsolutions.com> a écrit dans le message de news:20030828064636.GB13780@panix.com...
Greetings: Problems arise when running DB under PHP 5*. Several files have methods that return by reference, but the returns in those methods don't return to variables. When this happens, errors, such as the following, happen:
Yes. We will probably rewrite most of the packages for PHP5.
Fatal error: Only variables or references can be returned by reference in c:\progra~1\pear\pear\DB\common.php on line 766 I have made a patch to address this issue: http://www.analysisandsolutions.com/pear/DB.references.diff Where returned items are not already variables, I assigned the items to variables, then returned the variable. Enjoy, --Dan * PHP 5.0.0b2-dev (cgi-fcgi) (built: Aug 26 2003 16:10:16) --
    FREE scripts that make web and database programming easier
          http://www.analysisandsolutions.com/software/
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7th Ave #4AJ, Brooklyn NY    v: 718-854-0335   f: 718-854-0409
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

« previous php.pear.dev (#20720) next »