Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127952 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 5208C1A00BC for ; Mon, 7 Jul 2025 19:53:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751917904; bh=WYob0FJD2y8I4FrPoKra4wZVM5R2T68sbaang1d2xyg=; h=Date:Subject:To:References:From:In-Reply-To:From; b=DE5IkV+4Szdaw/aiZWj4xSAPuq4ZLrqmELe9Rc4ZBQFTmVLilmsf+5DH8sPBYrkcU xHcTi28XouPIOUKQzQuxzv+mQeX21VXUJLpyGVaykV7Usir0XRAV2AEURwwyWZt+uV qNAkFRY3iWCSVOfYJujUwL2WMwUxVvuAS+M51zJfUncakbxuCShuCTe+ac+U/cgC/o YiWiFn6M7k2c6LnA1qCBGCDmNFOF2zOVwI4euGTw3xQjetAz0jG6WtB8AT1z+NnG+o 906MGnAtcuCCWB1d3hzCQbuJOiAUbRsvfi133L98Tctf+UycckbjCt0zGQMLEqUDgc N6OdreROBq2iA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9E9FA18061D for ; Mon, 7 Jul 2025 19:51:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 7 Jul 2025 19:51:43 +0000 (UTC) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-453066fad06so25202545e9.2 for ; Mon, 07 Jul 2025 12:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751918013; x=1752522813; darn=lists.php.net; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=KIx8uTSKcTCfU5lm/wDIQyxYImCr5A2GekCtBf6rTm4=; b=mj5ksvZ1DT/dAFU3+giaBP6pw1Zd30bHpbaJEaaRFjQzh/tnAioB7g8h20A8yXKNJD gRIRHBreJyoHJQHw6tphpP1unIBg1IV+vRAOOgCwX7cEvAIW8IlZi66ifX0neFsCDHpL 92N3JY6Bek4NPNrDfz3qLwQ2bl7WRHfMd6s5EaQ/lSG70f+xmJejGqBbdM4NFxyxRPOx 5stdwwhW0g19ngdVrRpJtLYzbCo2KKWwSY7rYjMpIGZ/pYgsIOLMN3aD6Qq6KQi8dGTc CdUkj53NBice73y5H9kNX7DDwRn7j0T0fWnj5ks6KrcjZMVvz5fT3RU0wCJjYmSfggTj 5NGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751918013; x=1752522813; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KIx8uTSKcTCfU5lm/wDIQyxYImCr5A2GekCtBf6rTm4=; b=oe+HxezU9WWPVztA/u2rN/sGqzhUZzaDc+4JFORnyTOoUwvuYY9KL9yCd/KuNoE4R1 e7x5HdpVMBP1HNluwz3iBTjtNDrhZMIVchVD2Tx9diqIMROQBTb5rXaj8cHPIv3TVvc8 57RnlIq/MfH2z4Fg5p5Yad8345UVAQqLqasnreglRYW2i/q9XxZlyJPoWRwzszNV6vwv cO+qA/Mhn6if+gtjDDwCJTOq+Q/Ypg+bED601WGVa/AFVvD6Xkjtk/KJKpxzbHXAqoiQ 4RRQRXJ8H3iQcvUPbdEaCKgNqXXtzUjn0SZWrJ8D+/yslM6KphewtLlPvpE7WXVO0wWr PW6Q== X-Gm-Message-State: AOJu0Yxbzaone1kDE7agN17UH7Iv8N/iWqwfpY0S/2VWVtz1mXJazw0T npFQj6eWLiaWY/1gein4RvfQJ+C4SHboOz20GEK2fPxxo0P4xTSzu89a6X0Z6zDy X-Gm-Gg: ASbGncvSAhc+coU8xgrcnE+i1pFSzPeaOjHiwAVYiNCnDNyeHqyhyJnyWLmSPJDC8Wy 2q2hArCvU9OtqzCsGCWJSvg5ykZ864di1kFS1SOjQ/d/6qdrpR830O+kkNn6hdNMnlcNWi1ngiv YbF+RgS93m73Xj5V+6TfsUzb5ExkSmTzV9MT/PzkFQQ+noAmUTiarXk5LEBN7WRnx7z+mTrXrZv 92DiJJ2+m9l7045OJJTk73nwxfScWAE1/2YcneVv0VBHizR6o3rWFE/9P4cxRXyrpEjSKzw8NaW 76OgU5hDvQlOcCV+i1D46HfojLp3441UV0D2bLNomWYdS8qT/dxHz48M8Kpuu5vs/efHtLfftp2 rDG297Xfgk74UvtsC5yzf65NV/fJ83E4= X-Google-Smtp-Source: AGHT+IHC61YE4DeL0ljhxDkP9jXbmrxhFOBvA0M/V6vo0iobSVHrOn65S0VkcySPb839/JjVlYM+og== X-Received: by 2002:adf:e197:0:b0:3a4:f70e:abda with SMTP id ffacd0b85a97d-3b5dde3f68bmr99774f8f.10.1751918012920; Mon, 07 Jul 2025 12:53:32 -0700 (PDT) Received: from [192.168.0.241] (178-119-85-231.access.telenet.be. [178.119.85.231]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b47225a6fasm10873165f8f.81.2025.07.07.12.53.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Jul 2025 12:53:32 -0700 (PDT) Message-ID: Date: Mon, 7 Jul 2025 21:53:32 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 8.5 To: "internals@lists.php.net" References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: dossche.niels@gmail.com (Niels Dossche) On 07/07/2025 20:55, Theodore Brown wrote: > On Fri, July 4, 2025 at 01:01 Niels Dossche wrote: > >> There are a few things I will vote no for: >> >> * Deprecate semicolon after case in switch statement. >>   People seem to use this and it doesn't seem harmful to have. Just because you don't like it doesn't mean we should yeet it. > > Can you point to a project in current use where this syntax is intentionally used? I searched quite extensively > (even well beyond the top 1000 Composer packages where there are zero usages) and only found a tiny number of > accidental usages (e.g. where all the cases in a switch statement had a normal colon except one which had a semicolon typo). > Almost all of these were quickly fixed by sending a pull request. See https://externals.io/message/126000, in particular Derick's reply. Also I'm sure there's a lot of brownfield PHP code that we have no idea about how it looks like. > Maybe the unnecessary legacy syntax doesn't seem harmful, but I disagree. Non-standard alternate syntax can cause confusion > about a potential behavioral difference, and sometimes can even hold back future features (for example, deprecating the curly > brace array access syntax in PHP 7.4 made it possible to implement property hooks in PHP 8.4). Sure, but whether it opens up anything useful in the future is highly speculative. > I updated the RFC to document the planned deprecation message, as well a command which automatically fixes any usages in a project. :+1: Kind regards Niels