Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17289 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26483 invoked by uid 1010); 17 Jul 2005 22:06:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26468 invoked from network); 17 Jul 2005 22:06:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jul 2005 22:06:02 -0000 X-Host-Fingerprint: 81.110.110.53 cpc2-sout5-5-0-cust53.sot3.cable.ntl.com Linux 2.5 (sometimes 2.4) (4) Received: from ([81.110.110.53:35781] helo=localhost.localdomain) by pb1.pair.com (ecelerity HEAD r(6212)) with SMTP id 78/AE-10960-946DAD24 for ; Sun, 17 Jul 2005 18:06:01 -0400 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id D750CE3467; Sun, 17 Jul 2005 23:06:09 +0100 (BST) Message-ID: <42DAD651.5000507@teh.ath.cx> Date: Sun, 17 Jul 2005 23:06:09 +0100 User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) 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.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Reference Notice From: matthew@teh.ath.cx (Matthew Charles Kavanagh) It's a notice. Your soul won't curdle and fall out of your ears just because your code produces a notice which you can easily prevent from being output. 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. > >Cheers, >Rob. > >