Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102499 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16508 invoked from network); 27 Jun 2018 16:42:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2018 16:42:59 -0000 Authentication-Results: pb1.pair.com header.from=spam-free@blueyonder.co.uk; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=spam-free@blueyonder.co.uk; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain blueyonder.co.uk designates 80.0.253.67 as permitted sender) X-PHP-List-Original-Sender: spam-free@blueyonder.co.uk X-Host-Fingerprint: 80.0.253.67 know-smtprelay-omc-3.server.virginmedia.net Received: from [80.0.253.67] ([80.0.253.67:43173] helo=know-smtprelay-omc-3.server.virginmedia.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/51-01794-29EB33B5 for ; Wed, 27 Jun 2018 12:42:58 -0400 Received: from [192.168.0.100] ([82.47.50.152]) by cmsmtp with ESMTPA id YDWxfpCNrbtAcYDWxfAAoc; Wed, 27 Jun 2018 17:42:55 +0100 X-Originating-IP: [82.47.50.152] X-Authenticated-User: spam-free@blueyonder.co.uk X-Spam: 0 X-Authority: v=2.3 cv=QvlwI26d c=1 sm=1 tr=0 a=TAE3a1YMiMiF8Y4yWzocug==:117 a=TAE3a1YMiMiF8Y4yWzocug==:17 a=IkcTkHD0fZMA:10 a=x7bEGLp0ZPQA:10 a=pGLkceISAAAA:8 a=a5Gf7U6LAAAA:8 a=67BIL_jfAAAA:8 a=1LC0PWoJ2uphHOVfE8MA:9 a=96mrK_-Ht2Re0TMr:21 a=Zj4MevEB0ImskFV0:21 a=QEXdDO2ut3YA:10 a=VWYBCMy2-3DvUfgBPAUA:22 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blueyonder.co.uk; s=meg.feb2017; t=1530117775; bh=yVTREmJE16QcIXtko1nRxbkFXrPM33+Eq2YLw3vCW4w=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=jH0mLyuKSO9JByN9W7YP+dccnjGFOJsdD7OLlc2wjOvDoyoRyn1mp2en2UbjA0k4l 8ROeeqmvTShYMgMOIyAwVXs6leXrPLASoU6eR5GEQJ8jzxMx4z/tHlcmwM1qxpgQ0Y CefCV053yjNOd4d2AOW4iXo52hQmVt6AG9bY7PZPPXO8S+dSLYSIONpkQ30ND849Am aj7o1PGFv0Z76rblFFMo02FUc238qn9a3r0fTwGj0VL0cqXL5QugXSPhxka7U7BZOx /0sSLf52ovMYAOu+eZwXgy3Y7/8cPCG14qgTBZybtYjlQN8rRTo0f1k0VANxSSwVNA fmyD/XJBsCWMQ== To: Nikita Popov Cc: PHP internals References: <7dcfbc12-8ab5-0125-cfee-171c9a422b7e@blueyonder.co.uk> Message-ID: <9f8b355b-8d73-6dc0-027d-be8ab67cf05a@blueyonder.co.uk> Date: Wed, 27 Jun 2018 17:42:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfJzKWLGJtl35qbmgBg36OyZ7j/cDoWFwzdkBD8mBMtOoGEzalZXl9u7aEirMIxeA8USTDTvUa39UAZqXcVueW7JOBC6VWy3YrNBw9jViNExKLeG50EuY lkALomPGjIFCAuq2u1+jYXh32cei92CW9QnSxgPHkFxLijT9PmxuBBXjq38dVyJx19Cs0KyOYnbifigRT6Hj6Pu01sl+ZQHvqAWrjQGkZkBdVyGDnwhFsVNy dnI63Xra8o9lYUkxs1Spzg== Subject: Re: [PHP-DEV] [RFC] Deprecate and remove continue targeting switch From: spam-free@blueyonder.co.uk (niel) On 27/06/18 17:08, Nikita Popov wrote: > 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 > Thanks, this makes it clearer.