Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76488 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49712 invoked from network); 13 Aug 2014 14:51:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2014 14:51:21 -0000 Authentication-Results: pb1.pair.com header.from=james@notjam.es; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=james@notjam.es; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain notjam.es designates 209.85.220.50 as permitted sender) X-PHP-List-Original-Sender: james@notjam.es X-Host-Fingerprint: 209.85.220.50 mail-pa0-f50.google.com Received: from [209.85.220.50] ([209.85.220.50:44102] helo=mail-pa0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/07-11625-66B7BE35 for ; Wed, 13 Aug 2014 10:51:19 -0400 Received: by mail-pa0-f50.google.com with SMTP id et14so15022901pad.37 for ; Wed, 13 Aug 2014 07:51:15 -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:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=A1LVCbgcRPSFPP9ZY4sF6eqELkDirGrL00OFiuG1oHs=; b=NCdBSemApcJzi1NtuIIz0iTgNzz5BErfAfFFjjsM5QXBX/vBjM0VjZpztotmLmIbFy eFWhQfRV5ZaR769lmMGPbGLoJAvHGbKtS8SoWJ64XWysyenQLtntb729kk+r851PwrNS QWMCgDwJfuTc/BVXW7mqxjkMSS4PFBQSgd+zvsPe+kgQU7MZRxbRF/Vt8swQO7oJFMZy aPEO3H/ZnlLjeVzLdUEUfcRHdNAvNUcpxa0xS8wyeDPQ44GuM8uVvUyZlmJr2fL1JrgC MEaIyb/aHEmXKPYSPiZtzYatiLXBtkYN2cNsPMjJgwyOAFlPgQghiP57A/jC3xXYasW+ DGAg== X-Gm-Message-State: ALoCoQnkjGTMWN0rd8UVGW3LWv/lgyGn8xthZAyWgxsGF10AfXjACK/D+Vtpp9l5fvTTcD/pzFtU X-Received: by 10.68.247.137 with SMTP id ye9mr4496239pbc.69.1407941475604; Wed, 13 Aug 2014 07:51:15 -0700 (PDT) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx.google.com with ESMTPSA id fn1sm2355051pbc.77.2014.08.13.07.51.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Aug 2014 07:51:14 -0700 (PDT) Received: by mail-pa0-f46.google.com with SMTP id lj1so14929334pab.5 for ; Wed, 13 Aug 2014 07:51:14 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.70.131.199 with SMTP id oo7mr4421300pdb.95.1407941474251; Wed, 13 Aug 2014 07:51:14 -0700 (PDT) Received: by 10.70.51.8 with HTTP; Wed, 13 Aug 2014 07:51:14 -0700 (PDT) Received: by 10.70.51.8 with HTTP; Wed, 13 Aug 2014 07:51:14 -0700 (PDT) In-Reply-To: <53EB6B3F.407@gmail.com> References: <53EB3C6A.5010106@gmail.com> <53EB59AD.6020100@gmail.com> <53EB6103.4090600@gmail.com> <53EB6B3F.407@gmail.com> Date: Wed, 13 Aug 2014 10:51:14 -0400 Message-ID: To: Rowan Collins Cc: PHP internals Content-Type: multipart/alternative; boundary=001a1133221c6ffc53050083eb86 Subject: Re: [PHP-DEV] [RFC] Disallow multiple default blocks in a single switch statement From: james@notjam.es (James) --001a1133221c6ffc53050083eb86 Content-Type: text/plain; charset=UTF-8 Even if it is fall through that is causing the behavior it still is a syntax that no longer will be considered valid in a minor release - and seemingly in a point release as well if everyone had their way here. [: Not that I consider code likehttp://3v4l.org/ mtG4K a shining jewel but I could see people using this behavior. I also would like to second the notion that was brought up that this is and has been in HHVM if 3v4l is to be believed. It even selects the last default like PHP 5 does, not the first - again also brought up before. --001a1133221c6ffc53050083eb86--