RE: [PEAR-DEV] DB patch: Only variables or references can be returned by reference
| From: | Lukas Smith | Date: | Fri, 29 Aug 2003 08:31:16 +0000 |
| Subject: | RE: [PEAR-DEV] 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-20808@lists.php.net to get a copy of this message | ||
> From: Tomas V.V.Cox [mailto:cox@idecnet.com]
> Sent: Thursday, August 28, 2003 5:04 PM
> To: Analysis & Solutions
>
> 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.
>
> 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.
I fixed those issues in MDB and now MDB seems to be working with php5 ..
atleast the CLI (since I cant get apache working with php5).
Regards,
Lukas