Re: PHP 5.3.3 operator & problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



both php 5.1.6 and php 5.3.3 are php 5.
but it seems they are different in processing & operator.

2011/6/2 Simon J Welsh <simon@xxxxxxxxxxx>

> On 2/06/2011, at 2:44 PM, æç|åäæ wrote:
>
> > hi, all
> >
> > i currently have a project which using & operator on creating a new
> object.
> >
> > like:
> >  $class =& new Class();
> >
> > it works properly in  php 5.1.6,
> > but not in php 5.3.3
> > and it gives offset errors to me.
> >
> > is there anyone knows why and how to fix this problem?
>
> In PHP 5, objects are always assigned by reference, you do not need to make
> it explicit.
> ---
> Simon Welsh
> Admin of http://simon.geek.nz/
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux