Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5441 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54155 invoked by uid 1010); 13 Nov 2003 18:44:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54111 invoked from network); 13 Nov 2003 18:44:12 -0000 Received: from unknown (HELO mail1.panix.com) (166.84.1.72) by pb1.pair.com with SMTP; 13 Nov 2003 18:44:12 -0000 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mail1.panix.com (Postfix) with ESMTP id 0FCE948907 for ; Thu, 13 Nov 2003 13:44:12 -0500 (EST) Received: (from analysis@localhost) by panix5.panix.com (8.11.6p2-a/8.8.8/PanixN1.1) id hADIhoe04844 for internals@lists.php.net; Thu, 13 Nov 2003 13:43:50 -0500 (EST) Date: Thu, 13 Nov 2003 13:43:50 -0500 To: PHP Internals List Message-ID: <20031113184350.GA4127@panix.com> References: <1068703990.3fb320f6975fb@www.3gstech.com> <20031113065221.GA5862@panix.com> <3FB3CBE7.4020702@3gstech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FB3CBE7.4020702@3gstech.com> User-Agent: Mutt/1.4.1i Subject: Re: [PHP-DEV] php5 method return reference error? From: danielc@analysisandsolutions.com (Analysis & Solutions) Hi Walt: On Thu, Nov 13, 2003 at 10:22:31AM -0800, walt boring wrote: > > This is very sad that the only real argument in the bug against fixing > it was > that it was hard. Come on! This is such a fundamental thing to be able > to do. > > function &foo() { > return something_else(); > } The thing is, as I understand it, references are referring to a variable. Your example doesn't have a variable to refer to. If I misunderstand what's going on, I trust someone on the list will correct me. > going to make a lot > of php folks upset, and make it much more painfull to upgrade to php5. But the error rests on the people who made the mistake of coding returns by reference on items that aren't variables. Enjoy, --Dan -- FREE scripts that make web and database programming easier http://www.analysisandsolutions.com/software/ T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409