You are here: Re: reference stays reference even if passed by value « PHP Programming Language « IT news, forums, messages
Re: reference stays reference even if passed by value

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация