Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102495 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9935 invoked from network); 27 Jun 2018 16:08:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2018 16:08:24 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.51 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.214.51 mail-it0-f51.google.com Received: from [209.85.214.51] ([209.85.214.51:51649] helo=mail-it0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/FF-01794-376B33B5 for ; Wed, 27 Jun 2018 12:08:22 -0400 Received: by mail-it0-f51.google.com with SMTP id 128-v6so8341411itf.1 for ; Wed, 27 Jun 2018 09:08:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=RS8sMZE3pWvUhUTyJ7dCVAhqJeEF0qYh8wP64CqTqiY=; b=qAb9GehnlujFQ84V4YyGPdLRqZicFLfr3+3VU3ZfmdkQNBQ/Z5Zl1lOYvB5OyVFs6V nStbFlXYQP/eOt/SYJyFnlVkD4FEa2gbJvLd8acPBp5/bqdCnf7m3AX2fd3BOmJJIStJ UD3KDEdjBPmVQvKbbDHaDw2KPFSDlxwHasFuGEiz9gMvK111cfUpolcMdb3+FwhqIzR/ proAaMj+8nYt/aTs2Oh13UJd2EFoFqUVuBToM0EUNc1ra6xSkhF+LEIlV+OhS+5O2G3p brJak1lx4WzCvx/VOKZpvhANR1a2LcXzuF1Dx4SNNwD6ZV+dHVQAUaIVbXoa5rX3u9fR ccpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=RS8sMZE3pWvUhUTyJ7dCVAhqJeEF0qYh8wP64CqTqiY=; b=BuY9R/wB8uoLJuTkWo8D+hQWgHv3evEU2s4W3BpgTzkb1BUyX+KKzpALgGOEYhMFOn O0XyX/aD/kXEGGShbE/tBmVQGKrNVAZBGGN5hBHrxlj9Jhq8d8lXZd2DwRz6JOyBqAzK OJD2C2ze7VHjHOAAmL7Es7yQEo2CQSpkxIQx9iBwo2/3yAx+icxboEZnvCixJmMtnAOc WzIyxegs9ZjAuXo5l9ykYmplRqjSSXJpS/5iUa4MWQfOvUN5FK1aoD+aECLUlp3lIsl4 v4yHQtta0WI+osguOolTx4re+uSL33PEAzfBJrNhzkCE3FCwrEQadYUpg199uLNOpg+A zPJQ== X-Gm-Message-State: APt69E3yLsBcQ1et4d+66q0UqrVMHoGgs+pRrwlGUVloaH9ZVO1hg121 czhs4UebV14c+pgnhrOSlVFLiKFJtDoEi7UiV0U= X-Google-Smtp-Source: AAOMgpfbSZngXBcENIshwnER2KMqhh81MZQLrCOvNc4+nxvLn9B9P2EDqyRXKLvoUMw5ThcSyXd4i/dTakd5K2SVwb0= X-Received: by 2002:a24:4ad2:: with SMTP id k201-v6mr806990itb.6.1530115697209; Wed, 27 Jun 2018 09:08:17 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:fe16:0:0:0:0:0 with HTTP; Wed, 27 Jun 2018 09:08:16 -0700 (PDT) In-Reply-To: References: <7dcfbc12-8ab5-0125-cfee-171c9a422b7e@blueyonder.co.uk> Date: Wed, 27 Jun 2018 18:08:16 +0200 Message-ID: To: Rowan Collins Cc: niel , PHP internals Content-Type: multipart/alternative; boundary="000000000000990037056fa1d26f" Subject: Re: [PHP-DEV] [RFC] Deprecate and remove continue targeting switch From: nikita.ppv@gmail.com (Nikita Popov) --000000000000990037056fa1d26f Content-Type: text/plain; charset="UTF-8" On Wed, Jun 27, 2018 at 5:59 PM, Rowan Collins wrote: > On 27 June 2018 at 16:45, niel wrote: > > > On 24/06/18 17:16, Nikita Popov wrote: > > > >> Hi internals, > >> > >> Another small deprecation for your consideration... > >> > >> https://wiki.php.net/rfc/continue_on_switch_deprecation > >> > >> Regards, > >> Nikita > >> > >> > > Could you clarify the PHP 8 changes: > > > > "PHP 8 generates a compile error." > > > > Does this mean *any* use of continue in a switch is a compile error, or > > only continue without a number > > > > > Neither: > > > Continue can still be used inside switch statements, as long as it does > not target the switch. > > The lines marked "Deprecated" in the examples are the ones which will be > compile errors. > Thank you Rowan. I have added a code example to https://wiki.php.net/rfc/continue_on_switch_deprecation#unaffected_php_functionality to further clarify what is deprecated and what continues to be allowed. Nikita --000000000000990037056fa1d26f--