Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13025 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43105 invoked by uid 1010); 27 Sep 2004 18:40:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 43055 invoked from network); 27 Sep 2004 18:40:24 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 27 Sep 2004 18:40:24 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i8RIeN3A020872 for ; Mon, 27 Sep 2004 20:40:23 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i8RIeH02020841; Mon, 27 Sep 2004 20:40:17 +0200 Date: Mon, 27 Sep 2004 20:40:17 +0200 (CEST) X-X-Sender: derick@localhost To: Daniel Convissor cc: Jeffrey Moss , internals@lists.php.net In-Reply-To: <20040927180456.GA17529@panix.com> Message-ID: References: <001b01c4a4ba$bf575320$2c02a8c0@hans> <20040927180456.GA17529@panix.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdimedia.nl Subject: Re: [PHP-DEV] return NULL by reference From: derick@php.net (Derick Rethans) 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