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

From: Date: Thu, 28 Aug 2003 06:46:36 +0000
Subject: DB patch: Only variables or references can be returned by reference
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-20712@lists.php.net to get a copy of this message
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

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