php5 and stuff
| From: | Lukas Smith | Date: | Fri, 22 Aug 2003 11:32:33 +0000 |
| Subject: | php5 and stuff | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-20386@lists.php.net to get a copy of this message | ||
Hi,
I did some first tests with php5 today.
The pear installer ran smooth.
MDB needed some minor bug fixes of the type that I saw Jon do this
morning, but then the cli test suite ran nicely (didn't get php5 running
with apache yet).
I was getting errors like these:
Fatal error: Only variables or references can be returned by reference
in /mnt/tmp/phpcvs/pear/MDB/MDB/mysql.php on line 465
This was due to the fact that I had methods like
function &query()
{
return new foo;
}
I had to change things as follows
function &query()
{
$foo = new foo;
return $foo;
}
Regards,
Lukas Smith
smith@backendmedia.com
_______________________________
BackendMedia
www.backendmedia.com
berlin@backendmedia.com
Linn Zwoch Smith GbR
Pariser Str. 44
D-10707 Berlin
Tel +49 30 83 22 50 00
Fax +49 30 83 22 50 07