Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121219 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 18530 invoked from network); 3 Oct 2023 12:41:54 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Oct 2023 12:41:54 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DFF731804B4 for ; Tue, 3 Oct 2023 05:41:53 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 176.9.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 3 Oct 2023 05:41:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1696336911; bh=HpS0ZXsHlBjkYZpBpwG2guZHkTQKyvAUK75AvJjtJR0=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=DJoOhU77UAjUlRAMNcNKdb0C/n+KEkYDwc98z3ks7UQWZgK7Y00gV0+duJDjwndpr o9z6uYS4nXgNrFfG2eCiIk991WvJ9Uv5LMJPFLUCdvQ4FiS08nF6WheL99noLfYDYL 7tVtYHHAYV99hLI12HMxNGL0/pJ2JTbA1uiiWkJlwoYFFAlABhqVwjRqt6Cm1JYQ1W tXXTFQh1wQz9nTFRWEyjjJtGMIMNwuPcWVLHtq0+WbX4t4EDucwuJC9T0ENY5JaSvH EIeQDG2RoXgzBShsysmy5OoE6Z2xvU5jLL1D3yFqdOdD8P1xPdkETe1r+iKwls8hhL TWf9DEIbK8aWg== Message-ID: <6ae95177-e0f3-491c-015b-8275f572fb4d@bastelstu.be> Date: Tue, 3 Oct 2023 14:41:50 +0200 MIME-Version: 1.0 To: internals@lists.php.net References: <27a9b151-09d7-d5ea-bc0b-c85f8ab0e4ee@mabe.berlin> Content-Language: en-US In-Reply-To: <27a9b151-09d7-d5ea-bc0b-c85f8ab0e4ee@mabe.berlin> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] [Discussion] Rounding Integers as int From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=c3=bcsterhus?=) Hi On 9/30/23 08:26, Marc Bennewitz wrote: > The deprecation would act as an information for upcoming behavior > change, not classical deprecation of future removal. If the new behavior > is what you want, than you don't need to change anything as a > deprecation message should not break anything. At the same time people Correct, the deprecation message itself would not break anything. However when the new behavior is the behavior I desire, it would: 1. Cause noise in my logs, because the deprecation would continue to be emitted until the behavioral change is finally implemented. 2. Be confusing when working in preparing my application for future PHP versions by handling all deprecations. The only solutions would be either adding an '@' in front of every call to round, ceil, floor (which might suppress additional errors I *do* care about) or ignoring this specific deprecation within the error handler of the application after verifying that I checked all locations for correctness. There is no way for me to reliably mark only this specific deprecation as acknowledged / handled for a specific place within my code. This also extends to library developers who are already under pressure by users to make their libraries deprecation free on or before the release of a new PHP version. As the library doesn't control the error handler, they can't just ignore this specific deprecation for their library, without casting the input to float, despite being happy with the new behavior that will arrive in PHP 9. In other words, this deprecation is not really actionable to me as a developer, because I can't migrate to the new behavior on my own pace. Best regards Tim Düsterhus