Re: return NULL by reference
| From: | Lukas Smith | Date: | Mon, 27 Sep 2004 18:39:46 +0000 |
| Subject: | Re: return NULL by reference | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13024@lists.php.net to get a copy of this message | ||
Daniel Convissor wrote:
On Mon, Sep 27, 2004 at 11:52:24AM -0600, Jeffrey Moss wrote:i thought that one was fixed? regards, Lukas... snip ...return NULL;"Only variable references should be returned by reference "Just like the error message says. "References" are referring to variables. NULL isn't a variable. Do this instead:$tmp = null; return $tmp;