Re: return NULL by reference

From: Date: Mon, 27 Sep 2004 18:40:17 +0000
Subject: Re: return NULL by reference
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-13025@lists.php.net to get a copy of this message
On Mon, 27 Sep 2004, Daniel Convissor wrote: > 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; Although this is a totally stupid thing to do. Derick

« previous php.internals (#13025) next »