Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89156 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80409 invoked from network); 10 Nov 2015 19:47:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2015 19:47:55 -0000 Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.217.182 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.217.182 mail-lb0-f182.google.com Received: from [209.85.217.182] ([209.85.217.182:32778] helo=mail-lb0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/87-21426-AE942465 for ; Tue, 10 Nov 2015 14:47:54 -0500 Received: by lbbkw15 with SMTP id kw15so4635779lbb.0 for ; Tue, 10 Nov 2015 11:47:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=phYUl3x2A2ErdLxwe/rcDRqHrJ1aQSUOJ+aGZPg/hjQ=; b=RH57DGV6exiNjk+Ta/32fYJPzw3NyKVt9iAYEJjyEEcOVazk/RMEBAjuNNPJQKq1nt GxFJ8sARlTSgQ6AlDhfPUGfdb2l/ZXG0dbQWADsh9cNDAhIFeKw4h3kMoOrTKdfTEgnE 75tspIAY5HegMYJeKB1+AvvyMzskuiu1F8aT0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=phYUl3x2A2ErdLxwe/rcDRqHrJ1aQSUOJ+aGZPg/hjQ=; b=a4ZaZzoliSWXCqII57cr6yno1g6rRoE9qzU9mAeoFIxLSiT70Nf4aWkGSaXbXIripc gprpc3V86vS6OvBJJQrZQA5JSuvE40w/hvLPIsdsIHj0ThRAUOKzJb5wtxQuhyEbBQHM WHHVf6NgQ1OA5cq2gtz8yxlupj2oBo/QLuG4xWOonFPx3TYphRp3GTAD3KqMlekZx3Lb 7rt77HhyMPeYM5xGCf7icwXOazZRNmt8f8jfBA2fIlr3/CWk48ZS5IKThp8oJ3F/aNFc 1Ot2MkIVfu+YJh4xteHT2bIsfsMYgl2x84EFZ1U1iZTqshTrKTqqUwuF1zFwvl3cELVF Loqw== X-Gm-Message-State: ALoCoQlJkOxgoT99OcEONRxey41Tu4SwNBbBkLz4/sG+obn4aALnNGssqVlyn820mIxV+8Y5W0Q+ X-Received: by 10.112.135.65 with SMTP id pq1mr2675965lbb.11.1447184871434; Tue, 10 Nov 2015 11:47:51 -0800 (PST) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.25.24.212 with HTTP; Tue, 10 Nov 2015 11:47:31 -0800 (PST) In-Reply-To: References: Date: Tue, 10 Nov 2015 11:47:31 -0800 X-Google-Sender-Auth: -YnNzz8Q66hVShUMaKnqkjMB0z0 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] PHP7 / foreach / references / ugly code / discrepancy to PHP 5.6 From: aharvey@php.net (Adam Harvey) Hey Nikita, On 10 November 2015 at 11:45, Nikita Popov wrote: > This is a bug in PHP 5, which has been fixed in PHP 7 as a side-effect of > other changes. The new behavior is correct. This issue is tracked at > https://bugs.php.net/bug.php?id=70857. Are there any other variations on what expressions this changes the behaviour of, or is it really just ternaries? Just trying to figure out how to document this. Thanks, Adam