Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109362 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 53233 invoked from network); 26 Mar 2020 23:05:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Mar 2020 23:05:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 348771804D0 for ; Thu, 26 Mar 2020 14:30:29 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 26 Mar 2020 14:30:28 -0700 (PDT) Received: by mail-wm1-f43.google.com with SMTP id z18so8848463wmk.2 for ; Thu, 26 Mar 2020 14:30:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=wXc99A9orti4AWjkxR/m9xezHqCBjHQAobILTXtBDeQ=; b=ArHTK4zfZfzFIyGZkmzn6+l8qGvhROBNCal9XmjrJl3F3RAcxiJMdcJ9oSLUotjrmb 0Kb711iJljEog2TU+L8A+Z3fNXIEUXRo//ioN4Vs725tY5o9q71PP16KdKV9A04A2r9K BPwSCZ2jUZGwRmubpdB464HKcSYpLbYIzZqCOx3AKAo8ioXSzPYHV6Y0T5QX/Q+HSU3M Samj7JeJAuIOcGycgI8knqBn6uUgjggV0Yax1xBRUPC9K1IyE8P4H3A69Kl4RM49o7uF clWn7UnQoBs2kllDypsfFojtfPmSZ6y1eWui+qyu/QDaNPWH3zGi8pUYD7yZ9G9G05i1 pCPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=wXc99A9orti4AWjkxR/m9xezHqCBjHQAobILTXtBDeQ=; b=Gme83+umepk8zziYHh9zQGNAH1NHcoyxUYLSzIN7UkQ7gPpqBqfA/ed2Hx7ZtvdMcu 6SANSm/b/AgQVkFqCbqL0gwdB7fUbaylMqWYJ+JUE1I1v5enCOM/vG+hAHONZH9qzQ9M jt99eoiJVsQeOOgEcGkZdSykS/TvMAs1b/8rsk/7fp9stQ0iJC0zxj6Rmuay7jkkKdcc aoKuRlfjNy2w/cfozVPHTp522e3Ji4xWljtRbKkw3mxNaufXL7Q4z11rWSwCY8bB35g/ xw6kEPcJT/Mi7AbvGd8UqvGc9vSJKAMhpJz0xAivkDPZNzEeKcpq9PMSz6EnuIUS7yAu GLPg== X-Gm-Message-State: ANhLgQ3kLCjBm0A7LA6vHgr6yxBUISWbNdVRfB9pUH5x0TWEolkHcWrL n/2VT2/sI8azYzI5Ui5CNpY= X-Google-Smtp-Source: ADFU+vvkT6LvhWGg2EGY+06Pwvff/nqbILwZT5x0y3dfxL0aLEaK6fSnvL0gLn4y56JiY8q0CMDUrg== X-Received: by 2002:a5d:604a:: with SMTP id j10mr11178251wrt.126.1585258225193; Thu, 26 Mar 2020 14:30:25 -0700 (PDT) Received: from [192.168.0.63] (84-75-30-51.dclient.hispeed.ch. [84.75.30.51]) by smtp.gmail.com with ESMTPSA id i4sm5443315wrm.32.2020.03.26.14.30.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Mar 2020 14:30:24 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) In-Reply-To: Date: Thu, 26 Mar 2020 22:30:22 +0100 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <066BC8D4-29CE-4BA6-A8EC-55C23723350F@gmail.com> References: To: Benoit SCHILDKNECHT X-Mailer: Apple Mail (2.3608.80.23.2.2) Subject: Re: [PHP-DEV] semicolon terminator for switch cases From: claude.pache@gmail.com (Claude Pache) > Le 26 mars 2020 =C3=A0 21:49, Benoit SCHILDKNECHT = a =C3=A9crit : >=20 > A semi-colon is terminal. Italways is. "You see this set of = instructions? Done.". But in this case, itis not. You see the problem? >=20 No I don=E2=80=99t see the problem. Inside a switch construct, when you = reach the end of an instruction (or of a set of instructions) that is = not (resp. does not end with) a control-flow statement, you pass to the = next one. I=E2=80=99m sure that everybody knows that you have to use an = explicit control-flow statement like =E2=80=9Cbreak=E2=80=9D or = =E2=80=9Creturn=E2=80=9D if you want to be =E2=80=9Cdone=E2=80=9D before = reaching the bottom of the switch construct. Or maybe people could misguess that =E2=80=9C;=E2=80=9D in that context = is an odd way to mean =E2=80=9C: break;=E2=80=9D?=20 =E2=80=94Claude=