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 Hendri Kurniawan on 12/20/06 03:00

Why would you want to do that...
I mean assigning reference to a newly created
object just doesn't make sense...
$req = new HTTP_Request($this->accessUri);
will just do.

IMHO

johnny wrote:
> I have the following PHP code. I am using PHP 5.1.6.
>
> $req =& new HTTP_Request($this->accessUrl);
>
> I am getting the following errors:
> Strict Standards: Assigning the return value of new by reference is
> deprecated in c:\mysite\lib\simpleTest.php on line 80
>
> Can anyone tell why is this? Does it mean assigning the return value
> of new by reference is not supported in PHP 5.1.6?
>

 

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

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