note 108722 deleted from language.references.pass by nikic
| From: | nikic@php.net | Date: | Mon, 21 May 2012 23:42:24 +0000 |
| Subject: | note 108722 deleted from language.references.pass by nikic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-188123@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
"As of PHP 5.3.0, you will get a warning saying that "call-time pass-by-reference" is
deprecated when you use & in foo(&$a);."
Actually it will be better the other way. To make sure foo($a) generates a warning whereas
foo(&$a) does not. That way the user of the function will know that $a is going to be modified.
Whether a variable will be modified should be obvious from the way the function is called without
needing to look up the function definition.