note 41300 added to language.references

From: Date: Tue, 06 Apr 2004 02:53:01 +0000
Subject: note 41300 added to language.references
Groups: php.notes 
Request: Send a blank email to php-notes+get-67683@lists.php.net to get a copy of this message
On the post that says php4 automagically makes references, this appears to *not* apply to objects: http://www.php.net/manual/en/language.references.whatdo.php "Note: Not using the & operator causes a copy of the object to be made. If you use $this in the class it will operate on the current instance of the class. The assignment without & will copy the instance (i.e. the object) and $this will operate on the copy, which is not always what is desired. Usually you want to have a single instance to work with, due to performance and memory consumption issues." ---- Manual Page -- http://www.php.net/manual/en/language.references.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41300 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41300&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41300&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67683) next »