Re: php5 and stuff
| From: | Jan Schneider | Date: | Fri, 22 Aug 2003 12:19:54 +0000 |
| Subject: | Re: php5 and stuff | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-20395@lists.php.net to get a copy of this message | ||
Zitat von Lukas Smith <smith@backendmedia.com>:
> 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;
> }
It is yet to be decided if this will be "fixed" in ZE2:
http://bugs.php.net/bug.php?id=24687
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft