Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76402 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1174 invoked from network); 6 Aug 2014 18:35:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Aug 2014 18:35:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.192.169 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.192.169 mail-pd0-f169.google.com Received: from [209.85.192.169] ([209.85.192.169:54360] helo=mail-pd0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/00-00245-46572E35 for ; Wed, 06 Aug 2014 14:35:16 -0400 Received: by mail-pd0-f169.google.com with SMTP id y10so3743685pdj.14 for ; Wed, 06 Aug 2014 11:35:44 -0700 (PDT) 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:date :message-id:subject:from:to:cc:content-type; bh=/Tbd/hI9cx0FToUBnlpd0mp/xrtBssrK6whl4GxDgpk=; b=lBW5S/vdmpdawI2KqKlAAEEUPz4aueBniMmDC++5zS1xloCRY3Dd9qQ9sPGuJG7rpF sf1h4ScRBfFymElUGp5+o788mUyBBl50R5OR7gl2mb7r0CGBxAIlBjeiAdjgkg2dtun6 Ngx2pQV3CaWMYtxppTHrCbGnB2KaCUHlF09pdquja5Bb7Yx+PWKY1Y1TtGANxdeC/+Wt hIxfUfFsPH7aMfgOu1hBfCEj/NUf9WBMW2YML0nxQH7ulTJ37lZNXEHoNZjsIc8lCGL6 r6fUyz2SnZUaYiqWzUiIH9KUTEcB3oB3xxhJmjeTG2LbHobFnHEmWM1f05dnCyEqKqoe 2QKQ== X-Gm-Message-State: ALoCoQn0Nwt+fW39s7P3QXYEqQz0LOm0lghJJBF67rZJ8Rm72/l9uG34k2+uhGZD0EEdJw+sPKRn MIME-Version: 1.0 X-Received: by 10.70.27.161 with SMTP id u1mr13104780pdg.6.1407350144590; Wed, 06 Aug 2014 11:35:44 -0700 (PDT) Sender: php@golemon.com Received: by 10.70.95.37 with HTTP; Wed, 6 Aug 2014 11:35:44 -0700 (PDT) X-Originating-IP: [173.252.71.189] In-Reply-To: References: Date: Wed, 6 Aug 2014 11:35:44 -0700 X-Google-Sender-Auth: xVcMGKTyzrPehSe8o74jZLp5LQI Message-ID: To: Ferenc Kovacs Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Disallow multiple default blocks in a single switch statement From: pollita@php.net (Sara Golemon) On Wed, Aug 6, 2014 at 3:00 AM, Ferenc Kovacs wrote: > I think dropping this behavior is a good idea, but I'm confused by the > reasoning related to the langspec. > This rfc targets php.next (which is a safe move as this has BC break albeit > would require some questionable code), but the langspec was agreed to be > based on 5.6 and document how that works. > Did we agree on that? The lang spec was originally written to 5.6 to have a relatively stable target, but (in my mind at least) was meant to track master as we move the language forward. Was there a discussion about branching the langspec repo for versions? Rowan Collins wrote: > According to the bug report, HHVM also accepts multiple default blocks, > but uses the first rather than the last. It's probably not worth implementing > specific code there to take the last default label just in order to adhere to > a 5.6 spec, but is worth making it detect multiple labels to bring it in line > with the proposed change. > Yeah, HHVM needs to be fixed as well, but I left that out of the scope of php-lang versions php-implementation issue. -Sara