|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-08-30 16:19 UTC] zeev
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 05:00:01 2025 UTC |
Object references appear to change every time a change is made to the object, at least under NT. This means that you can't store mutable objects inside an array, for example. This is bad! <?php class example { var $a; function test() { $temp=$this; $this->a=10; return $temp; } } $c = new example; $c->a=1; $result=$c->test(); print($result->a); # prints out the number 1, not the number 10!! ?>