Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13024 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41067 invoked by uid 1010); 27 Sep 2004 18:40:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 41044 invoked from network); 27 Sep 2004 18:40:00 -0000 Received: from unknown (HELO ipx11223.ipxserver.de) (212.112.227.169) by pb1.pair.com with SMTP; 27 Sep 2004 18:40:00 -0000 Received: from localhost (localhost [127.0.0.1]) by ipx11223.ipxserver.de (Postfix) with ESMTP id 6F19A2E8142; Mon, 27 Sep 2004 20:39:58 +0200 (CEST) Received: from ipx11223.ipxserver.de ([127.0.0.1]) by localhost (ipx11223 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10871-01; Mon, 27 Sep 2004 20:39:48 +0200 (CEST) Received: from [192.168.0.100] (p213.54.242.73.tisdip.tiscali.de [213.54.242.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ipx11223.ipxserver.de (Postfix) with ESMTP id 7711E2E8145; Mon, 27 Sep 2004 20:39:48 +0200 (CEST) Message-ID: <41585E72.4070701@php.net> Date: Mon, 27 Sep 2004 20:39:46 +0200 User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Convissor Cc: Jeffrey Moss , internals@lists.php.net References: <001b01c4a4ba$bf575320$2c02a8c0@hans> <20040927180456.GA17529@panix.com> In-Reply-To: <20040927180456.GA17529@panix.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by somedaemon at backendmedia.com Subject: Re: [PHP-DEV] return NULL by reference From: lsmith@php.net (Lukas Smith) 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; i thought that one was fixed? regards, Lukas