Re: Only variables can be passed by reference
| From: | Levi Morrison | Date: | Thu, 04 Dec 2014 21:34:19 +0000 |
| Subject: | Re: Only variables can be passed by reference | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-79430@lists.php.net to get a copy of this message | ||
> Thoughts?
The only reason to take a parameter by reference is because you modify
the variable that the caller is passing in. Passing in constants is
*almost certainly* an error. I would rather have the warnings than
remove them.