Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56673 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79906 invoked from network); 30 Nov 2011 01:55:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Nov 2011 01:55:36 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.210.170 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:41270] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/E1-04068-71D85DE4 for ; Tue, 29 Nov 2011 20:55:35 -0500 Received: by iakc1 with SMTP id c1so13079191iak.29 for ; Tue, 29 Nov 2011 17:55:32 -0800 (PST) Received: by 10.231.82.213 with SMTP id c21mr4834718ibl.70.1322618132740; Tue, 29 Nov 2011 17:55:32 -0800 (PST) Received: from [192.168.200.5] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPS id dd36sm1383901ibb.7.2011.11.29.17.55.28 (version=SSLv3 cipher=OTHER); Tue, 29 Nov 2011 17:55:29 -0800 (PST) Message-ID: <4ED58D0F.1070503@lerdorf.com> Date: Tue, 29 Nov 2011 17:55:27 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: devis@lucato.it CC: PHP internals References: <4ED57E77.4080205@lerdorf.com> In-Reply-To: X-Enigmail-Version: 1.4a1pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] New dereferencing syntaxes in 5.4 From: rasmus@lerdorf.com (Rasmus Lerdorf) On 11/29/2011 05:22 PM, devis@lucato.it wrote: > Hi Rasmus, > > I already tested a similar example (see > http://codepad.viper-7.com/tNkTTX) but I'm getting Sorry, pasting something into codepad doesn't qualify as testing. You have no idea how and when they built the 5.4 they are running. Until the first release, 5.4 is a moving target. And everyone who posts to internals are expected to be able to download and install 5.4 on their own. But to answer your question, yes, that syntax will work fine. It is right out of the UPGRADING file at: http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/UPGRADING?view=markup which says: - Class member access on instantiation: (new foo)->method() (new foo)->property (new foo)[0] -Rasmus