Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121300 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 10219 invoked from network); 13 Oct 2023 11:41:12 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 13 Oct 2023 11:41:12 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DDD921804B4 for ; Fri, 13 Oct 2023 04:41:11 -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=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 13 Oct 2023 04:41:11 -0700 (PDT) Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-536b39daec1so3349470a12.2 for ; Fri, 13 Oct 2023 04:41:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697197270; x=1697802070; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6pTBX1cMXkh7Lpt9+b09AVYjEV8gLvy2o3SepR8JBu8=; b=LHIVdWw2n5xJFduCk9F270sH6NzAuDt/XSza6ZtimZfiCPOocRPO5efv+DIeUU/Ig0 YDGOTZ1NbPmHdI22JvK7mwJUPR1OIp1kKqfd/hrJzphfKs3TIybYMxJWBifQxc+Iw3mJ RBw24/ULI4Y1BLGdcRnh4TSrUnxN/GCupoonJGB9J3yvZqztjKaSyL1LxMoocDwlWnPq +n9IHOdMFOUIfchvSuv9VprpeFXszgOhedsVDJWFvQsOL8fV3v0WxUB/9/1KIYB8EdVD lkUZ58UJpM+iYpFW12z63ymJdGUq2Gu7MoWB1rzAXgdZvAKoE05wabRq/R32swk8+lQE +THg== X-Gm-Message-State: AOJu0Yx6LrQI578lZjSNhY5PmzFiiwkIlEJ1B+uwWkz70MKKYoe/XppB GKfO4mowiHTvxOezrEWfNyXjZo7t8uxeV7fwFfFyQls0 X-Google-Smtp-Source: AGHT+IEdxpv2wkKkcnHU15DG914rZgQgqX+GQXoOFlzFfUoceF1D266IXhrs39vQCqa4gbXmwvMcTccv5CSJNu0n6dM= X-Received: by 2002:a05:6402:22c3:b0:53d:d879:34f3 with SMTP id dm3-20020a05640222c300b0053dd87934f3mr6368738edb.1.1697197269520; Fri, 13 Oct 2023 04:41:09 -0700 (PDT) MIME-Version: 1.0 References: <27a9b151-09d7-d5ea-bc0b-c85f8ab0e4ee@mabe.berlin> <6ae95177-e0f3-491c-015b-8275f572fb4d@bastelstu.be> In-Reply-To: Date: Fri, 13 Oct 2023 12:40:58 +0100 Message-ID: To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000005d170c0607978814" Subject: Re: [PHP-DEV] [RFC] [Discussion] Rounding Integers as int From: bukka@php.net (Jakub Zelenka) --0000000000005d170c0607978814 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Oct 5, 2023 at 8:57=E2=80=AFPM Tim D=C3=BCsterhus wrote: > While this is not a bug fix that is appropriate for the current stable > branches, I don't see why it would not be appropriate for PHP 8.4 if > there's an RFC for it. > > In fact there is already a rounding bugfix (no RFC for that) in PHP 8.4: > > > https://github.com/php/php-src/blob/65a8c70f93ccb7e008de147cd4c357681c653= bd0/UPGRADING#L75-L82 > > This is however very different case as it is still following the currently voted rounding RFC so it is a more bug fix. Changing the return type of a heavily used function is a completely different matter. It will break for anyone using is_float or expecting the float in some other way. I realise that there is an implicit conversion so it's not such a huge problem most of the time but there might be case where it is an issue. I don't see it as a bug fix in any way. It's more just an implication of the return type being a float. I think we should always weight the implication of the break. The way that I see it that some small breaks are acceptable for minor version but bigger breaks should be done only in major version. I would consider this (and anything changing a return types) as a bigger break. Cheers Jakub --0000000000005d170c0607978814--