You are here: Re: ERROR: signing the return value of new by reference « PHP Programming Language « IT news, forums, messages
Re: ERROR: signing the return value of new by reference

Posted by Michael Fesser on 12/21/06 01:38

..oO(Hendri Kurniawan)

>Why would you want to do that...
>I mean assigning reference to a newly created
>object just doesn't make sense...

In PHP 4 it did.

>$req = new HTTP_Request($this->accessUri);
>will just do.

This code executed in PHP 4 would have created _two_ objects: the one
created by "new" and a copy of it assigned to $req.

Micha

 

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

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