Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91241 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5444 invoked from network); 17 Feb 2016 00:32:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Feb 2016 00:32:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=francois@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=francois@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 212.27.42.2 as permitted sender) X-PHP-List-Original-Sender: francois@php.net X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:5450] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1D/C2-17120-EAFB3C65 for ; Tue, 16 Feb 2016 19:32:46 -0500 Received: from [127.0.0.1] (unknown [82.240.16.115]) (Authenticated sender: flaupretre@free.fr) by smtp2-g21.free.fr (Postfix) with ESMTPSA id B0D0D4B0111; Wed, 17 Feb 2016 01:29:47 +0100 (CET) To: Yasuo Ohgaki References: <56A3A01F.1020500@php.net> Cc: Internals Message-ID: <56C3BFA4.5070107@php.net> Date: Wed, 17 Feb 2016 01:32:36 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 160216-2, 16/02/2016), Outbound message X-Antivirus-Status: Clean Subject: Re: [PHP-DEV] [RFC] Generalize support of negative string offsets From: francois@php.net (=?UTF-8?Q?Fran=c3=a7ois_Laupretre?=) Hi, Le 17/02/2016 00:26, Yasuo Ohgaki a écrit : > I noticed one issue on {} > https://bugs.php.net/bug.php?id=71611 > > echo "${str{1}}"; > > raises syntax error while > > echo "{$str{1}}"; > > works. Is this addressed? No, this is a different problem. This RFC just adds support for negative index values. It does not deal with variable dereferencing using ${}/{$}. Regards François