Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17296 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78032 invoked by uid 1010); 17 Jul 2005 23:52:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78017 invoked from network); 17 Jul 2005 23:52:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jul 2005 23:52:38 -0000 X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.4/2.6 Received: from ([204.11.219.139:48016] helo=colo.lerdorf.com) by pb1.pair.com (ecelerity HEAD r(6212)) with SMTP id BD/F2-42705-64FEAD24 for ; Sun, 17 Jul 2005 19:52:38 -0400 Received: from [192.168.2.106] (c-24-6-1-160.hsd1.ca.comcast.net [24.6.1.160]) (authenticated bits=0) by colo.lerdorf.com (8.13.4/8.13.4/Debian-3) with ESMTP id j6HNqRtW009300 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 17 Jul 2005 16:52:28 -0700 Message-ID: <42DAEF3B.4000406@lerdorf.com> Date: Sun, 17 Jul 2005 16:52:27 -0700 User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Cummings CC: internals@lists.php.net References: <1121626339.23752.24.camel@blobule.suds> In-Reply-To: <1121626339.23752.24.camel@blobule.suds> X-Enigmail-Version: 0.91.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Reference Notice From: rasmus@lerdorf.com (Rasmus Lerdorf) Yes, we know there are still some issues here. People are working on it. Or there is at least intent to work on it. See http://bugs.php.net/bug.php?id=33643 -Rasmus Robert Cummings wrote: > I think the reference notice stuff is a bit ridiculous. I mean I can > understand the concern behind: > > function &foo() > { > return $fee.$fii; > } > > But I mean the following gives errors too which is a bit too anal > retentive even for my liking: > > function &foo() > { > $fee = 'bullshitBullshitBullshit'; > > return $fee; > } > > function &fee() > { > return foo(); > } > > fee(); > > Anyways my two cents. Seems moronic that I now need to worry about > stupid reference notices X levels deep in the code for functions that > I'm consuming. I gueeeeeeeeeeeeess I can assign return values EVERYWHERE > to temporary variables just to get rid of the notices, but really, > shouldn't the engine be happy enough returning references to it's own > intermediate variable? I mean, heck, the engine knows enough to print a > warning, it can do the work-- and a hell of a lot faster than developers > having to temporarily assign everything.