Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124336 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 qa.php.net (Postfix) with ESMTPS id 6D3F11A00B7 for ; Wed, 10 Jul 2024 09:07:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1720602565; bh=1GXnqy2ifw7fOZzx9jZWLc0d7w5x2dRCpS6Luirqbco=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=MZEszCOJQX62YLSWnJj33tivGFB7zXv0uGVmp1qbLGAfUVBF39OSnp62XF7RncF1a 0xw4WUe3y4THHcrdVmN727aCKVnPMF0D5fYUYM4j6AnzNux7qyKFcSr3yAXcjYUcPv YsOaO44qwc7CIlzYhPkVR7ihPueWkS0J37CQzxwUFsNEBPX2IW7g6uERImezQQFAVa /il8Shr5u6Hzc8JpZYPpoeUgrI10YD5damGVkZpRZeFxrJ33WdzXfx1hgSkVt+bIWG 95NcVMLlK+s8CxmiU5wC2EJ7gn5RGUpc3TYtDcTD1ZffmetPgmGsamZ5wlgISPj3Nc Zih7yuCK1YNMw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 95C7D18005D for ; Wed, 10 Jul 2024 09:09:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: *** X-Spam-Status: No, score=3.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_PASS, SPF_SOFTFAIL autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) (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 ; Wed, 10 Jul 2024 09:09:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1720602477; bh=1GXnqy2ifw7fOZzx9jZWLc0d7w5x2dRCpS6Luirqbco=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=OGDI+NvdOHN0RL+osp+oJhYoqc6ZQ3Rr2z7/9OyQmHWCQ5HUfXxc5nFNEl28tv0FK PFEP7IIXdit+YayugoUYwdntB2hHTHQnOXYG4N+0EJMTZLYtaqVGq9vrytlDMqSQMN htcYrLxX9kBvithyM4JSFmyEjlQOpZJWL/yxsWniJ8tznNQYIhYduKxt2ps9XCxsHI qGrs4UFE+pRcR/ct9VFnfcG9y5XVNMCwH76C9xVkOqH8SXBxowk5es7siX15AKBV7j jNMk9bFTRKluK0cx8YkC/3evewJzLkrOQEgB7YpsD1Y9Ab6XrWV2q694BthcyNTnFj eOA23+MyJ5LMQ== Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id E7D1B10C187; Wed, 10 Jul 2024 10:07:55 +0100 (BST) Date: Wed, 10 Jul 2024 10:07:55 +0100 (BST) To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= cc: Saki Takamachi , Juliette Reinders Folmer , php internals Subject: Re: [PHP-DEV] [RFC] [Discussion] Allow int type argument to BCMath function In-Reply-To: <2a58f11d-ee93-42b9-825c-18cd490b9dc5@bastelstu.be> Message-ID: <25859f24-8886-e4fe-5321-fae5140abf4a@php.net> References: <668B4C78.2000808@adviesenzo.nl> <8FA0DE3B-2AF4-4110-9836-14E035DC8169@sakiot.com> <668B6428.9030705@adviesenzo.nl> <3DF46B77-530C-4CC7-8BFF-8B3DC2232EE2@sakiot.com> <2a58f11d-ee93-42b9-825c-18cd490b9dc5@bastelstu.be> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-261432467-1720602477=:3691" From: derick@php.net (Derick Rethans) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-261432467-1720602477=:3691 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 9 Jul 2024, Tim D=C3=BCsterhus wrote: > On 7/8/24 06:29, Saki Takamachi wrote: > > > I don't think a satisfactory specification will be decided on this=20 > > before the feature freeze, so I will not rush into discussing this=20 > > RFC for now. Of course, no voting will take place until the=20 > > specifications are decided. If we were to discuss this change again,=20 > > it would be in versions beyond 8.4. >=20 > I agree with Juliette that as long as passing a non-integer float to=20 > an int parameter is only a deprecation warning, widening the signature=20 > to `string|int` is too much of a breaking change. I agree too, and don't think we should change this in PHP 8.x. and probably would also question: "bcfloor() and bcceil() are excluded because there is no point in=20 allowing int type arguments due to the characteristics of their=20 functions. " Although that is right, having these *also* accept ints would at least=20 be consistent. cheers, Derick --8323329-261432467-1720602477=:3691--