Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13017 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90078 invoked by uid 1010); 27 Sep 2004 17:52:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89841 invoked from network); 27 Sep 2004 17:52:26 -0000 Received: from unknown (HELO outbound.mailhop.org) (63.208.196.171) by pb1.pair.com with SMTP; 27 Sep 2004 17:52:26 -0000 Received: from ip172.legends-river-oaks.slc.ygnition.net ([66.199.115.172] helo=dmcentral.com) by outbound.mailhop.org with esmtpa (Exim 4.42) id 1CBzfl-000MvG-QP for internals@lists.php.net; Mon, 27 Sep 2004 13:52:26 -0400 Received: from hans (vulcan.americom.com [208.187.207.195]) by dmcentral.com (Postfix) with ESMTP id EF186E1744 for ; Mon, 27 Sep 2004 10:59:40 -0700 (MST) Message-ID: <001b01c4a4ba$bf575320$2c02a8c0@hans> To: Date: Mon, 27 Sep 2004 11:52:24 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0018_01C4A488.747097E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Mail-Handler: MailHop Outbound by DynDNS.org X-Originating-IP: 66.199.115.172 X-Report-Abuse-To: abuse@dyndns.org (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: zardinuk Subject: return NULL by reference From: jeff@opendbms.com ("Jeffrey Moss") ------=_NextPart_000_0018_01C4A488.747097E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I can't seem to reproduce this bug, I was wondering if anyone has any = input they could give me.... I wrote a function to return a parameter by reference that worked with = PHP5.0 RC1, looks like this: function & getParameter ($name)=20 {=20 if (isset($this->params[$name]))=20 {=20 return $this->params[$name];=20 }=20 return NULL;=20 }=20 Now I recently upgraded to PHP5.0.2 and I get errors. I have tried to = make a test case script to demonstrate it but it works fine in command = line. My cgi script is huge, so I can't tell you how to reproduce it, = but it's giving me this error: "Only variable references should be = returned by reference " on the line with "return NULL;". Could this be related to another bug? The code works fine if I replace = "return NULL" with anything else, even "return $nonexistant->variable;". = Is there a way I can turn this check off? -Jeff Moss ------=_NextPart_000_0018_01C4A488.747097E0--