note 12329 deleted from language.oop.newref by sniper
| From: | sniper@php.net | Date: | Sun, 11 Jan 2004 14:44:56 +0000 |
| Subject: | note 12329 deleted from language.oop.newref by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-63317@lists.php.net to get a copy of this message | ||
Note Submitter: php-general@lists.php.net
----
$bar1->setName('set from outside');
$bar1->echoName();
$globalref[0]->echoName();
/* output:
set on object creation
set from outside */
This HAS to be wrong. Although it's correct that $bar1 and $globalref[0] is not the same
object, and that $bar1 is just a copy of $globalref[0], the output has to be the other way around.
When you call a function in $bar1, at least THAT objects $Name-variable has to change!