note 57365 deleted from language.references by cmb

From: Date: Sun, 01 Sep 2019 07:54:01 +0000
Subject: note 57365 deleted from language.references by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212073@lists.php.net to get a copy of this message
Note Submitter: pike at kw dot nl ---- if your object seems to "forget" assignments you make after instantiation, realize that in $foo = new Bar() the variable on the left hand is a *copy* of the variable on the right hand. As a result, & references made during instantiation may point to the righthandside version of Bar() and not to $foo. you'd better use $foo = & new Bar()

« previous php.notes (#212073) next »