Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21976 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77236 invoked by uid 1010); 21 Feb 2006 22:41:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77221 invoked from network); 21 Feb 2006 22:41:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Feb 2006 22:41:57 -0000 X-Host-Fingerprint: 80.123.98.46 unknown Received: from ([80.123.98.46:13099] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 56/63-45151-5379BF34 for ; Tue, 21 Feb 2006 17:41:57 -0500 Message-ID: <56.63.45151.5379BF34@pb1.pair.com> To: internals@lists.php.net Date: Tue, 21 Feb 2006 23:41:55 +0100 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 References: <1758.192.168.1.102.1140560726.squirrel@192.168.1.3> In-Reply-To: <1758.192.168.1.102.1140560726.squirrel@192.168.1.3> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 80.123.98.46 Subject: Re: Change to function call semantics in PHP 5.1? From: mike@php.net (Michael Wallner) Mark Spruiell wrote: > In PHP 5.0.x, I can chain function calls like this: > > $obj->method()->anotherMethod(); > > In PHP 5.1.x, this code results in an error: > > parse error, unexpected T_OBJECT_OPERATOR in ... > > I've looked through the change log for 5.1 but didn't see > anything relevant. > > Was this an intentional change? What version did you try? It seems to still work fine with current CVS. Regards, -- Michael - http://dev.iworks.at/ext-http/http-functions.html.gz