Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128264 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 CD7231A00BC for ; Mon, 28 Jul 2025 14:20:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1753712327; bh=z0h0CCvr09SHoHA0ZVfXrHLvEslACUonkUGRLli0r/8=; h=Date:To:From:Cc:Subject:In-Reply-To:References:From; b=BSDltt+YPxnGVUFATwv7FOJC/vm++6dr1cQBwsP2EzSv4DvCl+6C5IwO/Yz6Vrbzg Qmrfn2Dbi7zENxIv6KuYZBjCrZSmVId2Qih6jdJ3krjYsK/2FSNvzS85Y6xUfNsQSh dGGPRxM2oZsEBpJ4bBYhE/5Mz8ssRfATz37cr9dlpmsBHquoVsk1Wsyi7i0/Fgzn+M mZDCwYSNurwZHJVZvG3dyy1YvwWTq2T+wQ2CfJgKAlRXeBEj/bXGlYGzEFHBOLcBOu K7sf6RWotA20HOcVoX17HRmAs3swIfmO5O6MCC1h+a1ZmNsNmi+3sKZq3te02kW0ey fIY1wOg7fMFrw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8E33F1804F3 for ; Mon, 28 Jul 2025 14:18:45 +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_20,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-24421.protonmail.ch (mail-24421.protonmail.ch [109.224.244.21]) (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:18:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpb.moe; s=protonmail; t=1753712425; x=1753971625; bh=z0h0CCvr09SHoHA0ZVfXrHLvEslACUonkUGRLli0r/8=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=n6Jf6lxTEkiWN5spOMtFsOuMcJhhxQVGHMAqtKPQeVaUcIpHDU8PyRkDAHZlu6eEA rBfCeEp39hJow1oV6RivXesqQQOaUo/oebJ73IQjL4X3jp+P6J3JWWGwHP73mafyV6 /tN9/vLNp61Xb5Eich3osbar8MKliTkH3C5GZRRyzqhSyOgf8zr0PKvRE5Y/4LUZ6i yGNlzKQ8INoJoHjfKaFKNOeq6nCq3gh5/pXByF4V3M+VKxJBeVCi2og/U4x/mWQru+ mYZ09dAl20jmIzGH2TdMCN9suOkyRQo4ZwoTG3u0nW6rowqkdBfB3meANgAPANvbj9 i91PQh16p+6Hg== Date: Mon, 28 Jul 2025 14:20:19 +0000 To: Claude Pache Cc: internals PHP Subject: Re: [PHP-DEV] [RFC] Warnings for PHP 8.5 Message-ID: In-Reply-To: <4BFDCCE4-F4E5-4F87-AF1A-9B66C816684A@gmail.com> References: <4BFDCCE4-F4E5-4F87-AF1A-9B66C816684A@gmail.com> Feedback-ID: 96993444:user:proton X-Pm-Message-ID: f88c17f3a5c36b8635d24bea92fcce6a5abf04b1 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 Saturday, 26 July 2025 at 15:16, Claude Pache w= rote: > > Le 14 juil. 2025 =C3=A0 18:23, Gina P. Banyard internals@gpb.moe a = =C3=A9crit : > > =EF=BB=BFHello internals, > >=20 > > Similar to the mass deprecation RFC, I would like to propose the additi= on of a few warnings in certain situations: > > https://wiki.php.net/rfc/warnings-php-8-5 > > * The result of `(string) NAN` seems reasonable to me and don=E2=80=99t n= eed warning. > * I agree that `(int) NAN` does not make much sense, but if we warn on th= at, we should also warn on `(int) INF`, which makes even less sense (I expe= cted `(int) INF` to yield `PHP_INT_MAX`, but it yields `0`). I've added a whole new section that addresses this, as out of range casts a= re completely whack. See: https://wiki.php.net/rfc/warnings-php-8-5#casting_out_of_range_floats_= to_int Best regards, Gina P. Banyard