note 47416 added to language.references.whatdo
| From: | php dot develathomelinkcsdotcom at osu1 dot php dot net | Date: | Mon, 15 Nov 2004 23:16:38 +0000 |
| Subject: | note 47416 added to language.references.whatdo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-80566@lists.php.net to get a copy of this message | ||
In reply to lars at riisgaardribe dot dk,
When a variable is copied, a reference is used internally until the copy is modified. Therefore you
shouldn't use references at all in your situation as it doesn't save any memory usage and
increases the chance of logic bugs, as you discoved.
----
Manual Page -- http://www.php.net/manual/en/language.references.whatdo.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47416
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47416&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47416&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47416&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47416&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47416&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47416&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47416&report=yes
Search -- http://master.php.net/manage/user-notes.php