Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81092 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90587 invoked from network); 24 Jan 2015 18:00:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jan 2015 18:00:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=jrbasso@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jrbasso@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.171 as permitted sender) X-PHP-List-Original-Sender: jrbasso@gmail.com X-Host-Fingerprint: 209.85.213.171 mail-ig0-f171.google.com Received: from [209.85.213.171] ([209.85.213.171:54406] helo=mail-ig0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/37-49997-5CDD3C45 for ; Sat, 24 Jan 2015 13:00:37 -0500 Received: by mail-ig0-f171.google.com with SMTP id r10so2481820igi.4 for ; Sat, 24 Jan 2015 10:00:34 -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=7UubiV86kw0vvkyugTa5ow53oyR/ACsKsCJ62o3UeH8=; b=sluBDdt+h8iebQn5bBICY7DA6SEiCviiP6wTzTv42vhp2v6m0eEpGRoAqCLF0aBkjT PHGda+GPCe7JnPFD3E5IHQPZhhlhRXTk+PmM48QM87mmD9KYoIykQR8AxHJONH76Is3X nRIjcMQ7Ls5+TuOgC3J4NkhJ6+tj+nOGuJw9YcG2Dl54zP7rIWM7t8+8GQLEtjdEhFkA S0A/fl0swu3ACKlGdo3osWgj/EdEL9e8sARKCLQnEidTcOLSFXC7CQJ/mQJK8dW2xwBB 30UoSk757zvafC46LQWETIOdpO+v51OLd0570RndXwtKLAzrb8nYjKgFPc0nd6JntL9+ 960A== MIME-Version: 1.0 X-Received: by 10.50.108.83 with SMTP id hi19mr8359876igb.8.1422122431132; Sat, 24 Jan 2015 10:00:31 -0800 (PST) Received: by 10.64.25.114 with HTTP; Sat, 24 Jan 2015 10:00:31 -0800 (PST) In-Reply-To: References: <54C12DD8.7020800@lerdorf.com> <5er2cat2lpaq6bs6tmpapllcbq6lbcf0te@4ax.com> <3de5cah741q5ukqgqa60p71c3u0ipu0465@4ax.com> <4vg5cad3uavfkv4qr8604sri16h6pip4f5@4ax.com> Date: Sat, 24 Jan 2015 13:00:31 -0500 Message-ID: To: Nikita Popov Cc: Xinchen Hui , PHP Internals Content-Type: multipart/alternative; boundary=089e01494c2a55c769050d69aeb0 Subject: Re: [PHP-DEV] Re: PHP7 Homework for everyone reading this list From: jrbasso@gmail.com (Juan Basso) --089e01494c2a55c769050d69aeb0 Content-Type: text/plain; charset=UTF-8 I see. I guess that's fine. I opened a PR for CakePHP to update the code and avoid this. Thanks. On Sat, Jan 24, 2015 at 12:47 PM, Nikita Popov wrote: > 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 > --089e01494c2a55c769050d69aeb0--