Posted by Rik on 07/09/07 09:14
On Mon, 09 Jul 2007 11:10:38 +0200, michael.schmitz@tietoenator.com
<michael.schmitz@tietoenator.com> wrote:
>
> Hello all,
>
> I started porting a huge PHP application to PHP5 and encountered a
> problem with references. I don't know whether the behavior I see is a
> bug or a feature.
It's a change in PHP5: objects are passed by reference by default instead
of by value. If you need a copy you should use the clone keyword.
--
Rik Wasmus
[Back to original message]
|