On Sat, 2003-09-13 at 11:08, Curt Zirzow wrote:
> * Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]):
> > > function &create_object() {
> > > [..]
> > > }
> > >
> > > $some_object =& create_object('some_object');
> > >
>
> This line should be:
> $some_object = create_object('some_object');
>
> The use of & at calltime is deprecated and should only be used in
> the declaration of the functions:
> function &func_name(&$ref_var) { }
Wouldn't =& still be legal because you are assigning a reference of what
is returned? Would that make $some_object a reference to a reference? It
doesn't seem to raise an exception.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php