Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124316 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 BAC971ADAFE for ; Tue, 9 Jul 2024 17:50:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1720547544; bh=4e7dce5tfD1MxZ2Qlzpnv41FwppFUj1C/GBVm+zfihs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=FjbMnti6ZckOhpPOPs0jbm2TKZBeIkoW308vhrjVeYs3oKV2r4DY2KILDEvphbs8q 3gSQTnI1Cj+B6c63HC+xK0WxhjQrMLmNTpQS2ASMgtCQqMRmOnhNEQS4KGjIXpy6rx eXq/1UHixube+LzAorSKuOJTB0DmigTKfRqgRBovardUT+liEwMwRh5RvjFiDY0TDi ZrSvpmCXF62HlKwZktzm/Ml1dd0Q5JQUvtVCnDWZQ490abWm0IV/ZIjGi+j5uAgSAF uCvCrak8uxVixumTyLkLi1QYcbQ5ObDM7BPB3FwYPB4DTMQ+zM1GB8hwS63g9iYsLT JRca40Xdwmn1w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 342811813A3 for ; Tue, 9 Jul 2024 17:52:23 +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=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Tue, 9 Jul 2024 17:52:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1720547455; bh=Q1CjKrQ/iHYCaaZyyUXAnvKzrdlZOioqobistXBLnlk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=bAhFvfEjMYpVOGDyCxbaEBF9epVnQsULvZKQt2JKQ5pZY0Ok3Kqb5W4Agn2bue8Hb UM879dM3hOL23O6eispYStvxHr8/7cqFfffGn3An053K/C0Y2uVkc6vR8PUYqMSxGO IbtMr5ioi9J6PLCAuCypyF34Aqrv6eIXFkflwwYJpD66wobXf8hYQEqyxGoKTc0bcB 3j6RN2SwwRCAfaC1lpsH4boW9GtsBs0GhUwYReU4bZ3LWhAQMMKiXbiXdApmjXVhTu dhbE6u8oUGB5lU6N7BPIfNKbL7VE1u+saBm9h9iD8iCQImwbqqaCM6p7LLx9s5RWiA y8C6pJ8b2McIg== Message-ID: <2a58f11d-ee93-42b9-825c-18cd490b9dc5@bastelstu.be> Date: Tue, 9 Jul 2024 19:50:54 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] [Discussion] Allow int type argument to BCMath function To: Saki Takamachi , Juliette Reinders Folmer Cc: php internals References: <668B4C78.2000808@adviesenzo.nl> <8FA0DE3B-2AF4-4110-9836-14E035DC8169@sakiot.com> <668B6428.9030705@adviesenzo.nl> <3DF46B77-530C-4CC7-8BFF-8B3DC2232EE2@sakiot.com> Content-Language: en-US In-Reply-To: <3DF46B77-530C-4CC7-8BFF-8B3DC2232EE2@sakiot.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 7/8/24 06:29, Saki Takamachi wrote: > I don't think a satisfactory specification will be decided on this before the feature freeze, so I will not rush into discussing this RFC for now. Of course, no voting will take place until the specifications are decided. If we were to discuss this change again, it would be in versions beyond 8.4. I agree with Juliette that as long as passing a non-integer float to an int parameter is only a deprecation warning, widening the signature to `string|int` is too much of a breaking change. Given that once you called a BCMath function the output is a string, the int->string conversion would only happen at the inputs. The performance cost should be fully acceptable and this looks like a premature micro-optimization. Best regards Tim Düsterhus