Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128266 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 A10C11A00BC for ; Mon, 28 Jul 2025 14:23:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1753712503; bh=SmOv8qQqxtRK3Pq2nxwlJsIX5mccVCpc7m+lM53WOoo=; h=Date:To:From:Subject:In-Reply-To:References:From; b=n70Bc5av72HmZtYplUbYZT5nPeD4B1HoeQzpeSA4k8apqoE1AtrJ64zNYePFvGC90 xurjSleDGSrFfwE2vPOjdCsz65EHJAM3wcLLzSSa1es5ZW82ia7iH9VhJkZA9yTnTU VGIVJz4AvoKP6Cunn+LzbWcb2x1Jf8o5zfmjJ9VoAXEVSqXxmR1ppwtlr5prubE3Fb Ld2yjC5t3lxg5aQcAaqjZ/vKag0b1pr9yDYoe6Efi/QMkmzCgKkouhcxbPT8fwh7lJ Fp3ycMZjBSsh+0/HzlzUKgTOkgE1J+/uiM9JeVLjcFBLt3/TMWvhRlToRsM0ij1xln x8aLYTSWKQyZg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7954D18061E for ; Mon, 28 Jul 2025 14:21:41 +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=-0.4 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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-10627.protonmail.ch (mail-10627.protonmail.ch [79.135.106.27]) (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, 28 Jul 2025 14:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpb.moe; s=protonmail; t=1753712600; x=1753971800; bh=SmOv8qQqxtRK3Pq2nxwlJsIX5mccVCpc7m+lM53WOoo=; h=Date:To:From:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=m6nsDumruH0YKIN1s3VU53CskHEi9zepJEFa1Yf8UQCrP4Ek/2XuQAG8wEzCFaQNI S9wr1PRzGHQvIfLazlYAJSPHxVi8QwPS6rxQgygZD+wcwnMNsmO6qZzFoXyL/I7V7M Y4BVKJLBmkqmhhfTY0OOqrPBueaeiYdyct4n4AMvOoA+ZXQ3q15z8xjw///LoGwNkD JXvhG736OpakkL6cf0zScujHjfHaX4iz2fsIwHAfMtaTiWOtP2xdsop1tci1AkKk1X WB3XA2LKPyz71zPuzTkxAD6juX7LXJ8AqcDFNVgZgY0NsfowAZNWS+31whyaNnJGBQ Nr3NLqAZSYnAA== Date: Mon, 28 Jul 2025 14:23:15 +0000 To: PHP internals Subject: Re: [PHP-DEV] [RFC] Warnings for PHP 8.5 Message-ID: In-Reply-To: References: Feedback-ID: 96993444:user:proton X-Pm-Message-ID: 3cf96d3e008601dea784e7e0dd56138f5944e29d Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: internals@gpb.moe ("Gina P. Banyard") On Monday, 14 July 2025 at 17:20, Gina P. Banyard wrote= : > Hello internals, >=20 > Similar to the mass deprecation RFC, I would like to propose the addition= of a few warnings in certain situations: > https://wiki.php.net/rfc/warnings-php-8-5 >=20 > I am expecting these 4 sub-proposals to be mostly uncontroversial, > other than possibly, the "Using offsets on non-container values in isset(= )/empty()" one. >=20 > As this is intended to land in PHP 8.5 the discussion will last 2 weeks a= nd voting will commence on Monday the 28th of July 2025. As Claude pointed out a major pitfall, that I wasn't even aware of, I added= a new proposal to the RFC: "Casting out of range floats to int" https://wiki.php.net/rfc/warnings-php-8-5#casting_out_of_range_floats_to_in= t As I am aware it is in bad taste to shove something new into such a proposa= l minutes before starting the vote, I'll postpone the vote for a few hours so that at least _some_ people can s= ee and raise objections. Best regards, Gina P. Banyard