Re: return NULL by reference
| From: | Daniel Convissor | Date: | Mon, 27 Sep 2004 18:04:57 +0000 |
| Subject: | Re: return NULL by reference | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13019@lists.php.net to get a copy of this message | ||
On Mon, Sep 27, 2004 at 11:52:24AM -0600, Jeffrey Moss wrote:
> return NULL;
... snip ...
> "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;
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409