note 48108 added to language.oop5.basic

From: Date: Sun, 12 Dec 2004 07:44:17 +0000
Subject: note 48108 added to language.oop5.basic
Groups: php.notes 
Request: Send a blank email to php-notes+get-81707@lists.php.net to get a copy of this message
"When assigning an already created instance of an object to a new variable, the new variable will access the same instance as the object that was assigned." Actually, the new variable will access a COPY of the instance and not the SAME instance. This is shown by the example: var_dump($assigned) was not NULLified because a COPY of the instance was assigned to $assigned... ---- Manual Page -- http://www.php.net/manual/en/language.oop5.basic.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48108 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48108&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48108&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48108&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48108&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48108&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48108&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48108&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81707) next »