You are here: Re: cannot re-assign $this ... « PHP Programming Language « IT news, forums, messages
Re: cannot re-assign $this ...

Posted by Daniel Loose on 02/21/07 14:17

On Tue, 20 Feb 2007 23:15:09 +0100, Henk Verhoeven
<news1@phppeanutsREMOVE-THIS.org> wrote:

> When you replace
> $this = func_get_arg(0);
> return;
>by
> return func_get_arg(0);
>
>you shoud get the same results in php4 and it should work in php5 too.
>

hm, thank you hank, however this is not the solution. of course it
removes the cannot reassign error msg, but gives another errror in
another line that wants to access the object (by using $this again)
("Call to a member function initLink() on a non-object ") I'm not an
expert here but I don't think that return func... does the same as the
original code... :-)

hoping for any other ideas,
daniel

 

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

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