RE: [PEAR-DEV] Re: DB patch: Only variables or references can be returned by reference

From: Date: Thu, 28 Aug 2003 07:59:48 +0000
Subject: RE: [PEAR-DEV] Re: DB patch: Only variables or references can be returned by reference
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-20722@lists.php.net to get a copy of this message
Nope, somebody posted the related bug id recently. Basically zeev explains that it is quite complicated and the status is unresolved atm. http://bugs.php.net/bug.php?id=24687 [22 Jul 11:53am CDT] zeev@php.net Yes, it is quite complicated. You can only return variables by reference, a function's return value is not something we can 'connect' to... Arnaud. > 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 > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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