Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21985 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33100 invoked by uid 1010); 22 Feb 2006 08:20:33 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33085 invoked from network); 22 Feb 2006 08:20:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Feb 2006 08:20:33 -0000 X-Host-Fingerprint: 82.94.239.5 jdi.jdi-ict.nl Linux 2.5 (sometimes 2.4) (4) Received: from ([82.94.239.5:52063] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 85/6B-50685-ECE1CF34 for ; Wed, 22 Feb 2006 03:20:31 -0500 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id k1M8KQ9F027153; Wed, 22 Feb 2006 09:20:26 +0100 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id k1M8KE0s027057; Wed, 22 Feb 2006 09:20:17 +0100 Date: Wed, 22 Feb 2006 09:19:57 +0100 (CET) X-X-Sender: derick@localhost To: Mark Spruiell cc: PHP Internals List In-Reply-To: <1506.192.168.1.102.1140559520.squirrel@192.168.1.3> Message-ID: References: <1506.192.168.1.102.1140559520.squirrel@192.168.1.3> X-Face: "L'&?Ah3MYF@FB4hU'XhNhLB]222(Lbr2Y@F:GE[OO;"F5p>qtFBl|yVVA&D{A(g3[C}mG:199P+5C'v.M/u@Z\![0b:Mv.[l6[uWl' MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdi-ict.nl Subject: Re: [PHP-DEV] Change to function call semantics in PHP 5.1? From: derick@php.net (Derick Rethans) On Tue, 21 Feb 2006, 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? Uh, this works fine in tons of our code... Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org