note 11927 deleted from function.unset by didou
| From: | didou@php.net | Date: | Tue, 19 Aug 2003 15:47:11 +0000 |
| Subject: | note 11927 deleted from function.unset by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54689@lists.php.net to get a copy of this message | ||
Note Submitter: php-general@lists.php.net
----
I found a difference in unset() behavior in php4. If you unset that which is passed by reference,
then when you assign the variable anew, you are no longer writing on the caller's variable!
To put it plainly, pass by reference in php4 uses actual php4 references. In php3, it's done
strictly by name. Seen this way, it makes perfect sense.