Reply to Re: Global references to objects

Your name:

Reply:


Posted by Oli Filth on 12/30/05 12:46

Oli Filth said the following on 30/12/2005 10:02:
> Lüpher Cypher said the following on 30/12/2005 01:12:
>
>> So, basically I have
>>
<...SNIP CODE...>
>>
>
> Yet another situation where turning on error reporting will enable you
> to immediately find the silly mistake...
>

Ah, well this, and one of PHP 4's "special features" (read "annoying
behaviour"); the fact that:

$a = new A();

assigns a copy of the newly-created object, not a reference. Change it to:

$a =& new A();



--
Oli

[Back to original 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

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