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

From: Date: Thu, 28 Aug 2003 15:03:54 +0000
Subject: Re: DB patch: Only variables or references can be returned by reference
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-20756@lists.php.net to get a copy of this message
When get some time, I'm going to fully test DB under PHP5. That's a main objective for the next DB release. I'll count with your patches. Tomas V.V.Cox On Thursday, August 28, 2003 8:46, Analysis & Solutions wrote: > 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: > 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 -- Tomas V.V.Cox mailto:cox@idecnet.com

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