Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17297 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83197 invoked by uid 1010); 18 Jul 2005 00:00:21 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 83180 invoked from network); 18 Jul 2005 00:00:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2005 00:00:21 -0000 X-Host-Fingerprint: 66.11.173.122 unknown Received: from ([66.11.173.122:25393] helo=interjinn.com) by pb1.pair.com (ecelerity HEAD r(6212)) with SMTP id 16/53-42705-511FAD24 for ; Sun, 17 Jul 2005 20:00:21 -0400 Received: from blobule.suds (blobule.suds [192.168.1.3]) by interjinn.com (Postfix) with ESMTP id 9537511FB69; Sun, 17 Jul 2005 20:00:14 -0400 (EDT) To: Rasmus Lerdorf Cc: internals@lists.php.net In-Reply-To: <42DAEF3B.4000406@lerdorf.com> References: <1121626339.23752.24.camel@blobule.suds> <42DAEF3B.4000406@lerdorf.com> Content-Type: text/plain Organization: InterJinn Message-ID: <1121644819.30494.0.camel@blobule.suds> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5-4mdk Date: Sun, 17 Jul 2005 20:00:19 -0400 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Reference Notice From: robert@interjinn.com (Robert Cummings) On Sun, 2005-07-17 at 19:52, Rasmus Lerdorf wrote: > 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 Ahhh, very cool. Thanks. Cheers, Rob. > 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. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'