when $a = &new class is necessary
| From: | Gregory Beaver | Date: | Mon, 24 Sep 2007 15:26:44 +0000 |
| Subject: | when $a = &new class is necessary | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-48158@lists.php.net to get a copy of this message | ||
Hi all,
As the push to make the PHP 4 code closer to PHP 5 E_STRICT takes place,
I thought it might be helpful to have a guide for when $a = &new class
is necessary, and when & is necessary for function parameters that are
objects.
Read these two pages for some more insight:
http://www.php.net/manual/en/language.oop.newref.php
http://blog.libssh2.org/index.php?/archives/51-Youre-being-lied-to..html
Greg