Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81090 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87218 invoked from network); 24 Jan 2015 17:47:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jan 2015 17:47:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.177 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.212.177 mail-wi0-f177.google.com Received: from [209.85.212.177] ([209.85.212.177:52864] helo=mail-wi0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/86-49997-BAAD3C45 for ; Sat, 24 Jan 2015 12:47:23 -0500 Received: by mail-wi0-f177.google.com with SMTP id r20so2846485wiv.4 for ; Sat, 24 Jan 2015 09:47:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=FEDP8SUJ1qXzeVU4ud1uB7GxG4wMz3RjYlIUx6HbBa0=; b=jEyxYEeJyXJEpaJNVM5ThjVg0QvSuJPG0cjV5bOMpEVrl9MO54AN81xwO4Z5S2I8AL w901XRL2+2moGy9U37SrxqofpTauv8SeNKxQkJBULVd5nzn/r+PtLz8DEnBUxEzLsLiE BdcFeVW93/Lp1E2d5I96B1LMdZcCve1mCnQkLWELcF55Pfgr/Tn7lV2knKk7jvZqtq2c F9Qt3DfZpnoEvCBs1FvYtPcllADEVRaRrdk9PFNsdDgzNon9cG0r58FsdyD7/d9Iq5/Y Sg0YxPyxWLD3QnQ2vHTM5MsoN+x0u9AvJRMTxw6NG4DbPtWOmzs43EiIIE+xnpniBQ89 q+NQ== MIME-Version: 1.0 X-Received: by 10.180.198.74 with SMTP id ja10mr504547wic.52.1422121639779; Sat, 24 Jan 2015 09:47:19 -0800 (PST) Received: by 10.27.10.138 with HTTP; Sat, 24 Jan 2015 09:47:19 -0800 (PST) In-Reply-To: References: <54C12DD8.7020800@lerdorf.com> <5er2cat2lpaq6bs6tmpapllcbq6lbcf0te@4ax.com> <3de5cah741q5ukqgqa60p71c3u0ipu0465@4ax.com> <4vg5cad3uavfkv4qr8604sri16h6pip4f5@4ax.com> Date: Sat, 24 Jan 2015 18:47:19 +0100 Message-ID: To: Xinchen Hui Cc: Juan Basso , PHP Internals Content-Type: multipart/alternative; boundary=047d7b62498c2aa490050d697fe3 Subject: Re: [PHP-DEV] Re: PHP7 Homework for everyone reading this list From: nikita.ppv@gmail.com (Nikita Popov) --047d7b62498c2aa490050d697fe3 Content-Type: text/plain; charset=UTF-8 On Sat, Jan 24, 2015 at 6:40 PM, Xinchen Hui wrote: > Hey: > > On Sun, Jan 25, 2015 at 1:26 AM, Juan Basso wrote: > > I step in another failing test that I would like to confirm if that is an > > issue or it was an accepted backward incompatibility due the phpng (I > > couldn't find anything on the RFC and the UPGRADING regarding that). > > > > Here is the code: http://3v4l.org/h7TEV > > > > The issue happens when the variable used to split data using list() is > also > > part of the variables that will receive the values. In the case of my > > example, $data contains the data to be splitted and also will receive the > > first value. > > > > Is that an issue or BC break? > this is a knew BC break, please read "Changes to list()" section in > the AST RFC https://wiki.php.net/rfc/abstract_syntax_tree > > thanks > We also document this on http://php.net/list: > Modification of the array during list() execution (e.g. using list($a, $b) = $b) results in undefined behavior. If we want, we could make this defined behavior (we would have to disable CV optimization on the $b fetch). I don't really care personally. Nikita --047d7b62498c2aa490050d697fe3--