Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124330 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 2D87A1A00B7 for ; Wed, 10 Jul 2024 06:36:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1720593450; bh=hl8EFjgIKJgas6OodUKedcXWfHE9QWOE1/PyHrD6Eg8=; h=From:Subject:Date:References:To:In-Reply-To:From; b=kBpheaDUqGasSuHpeCbId5itTdgryxVcgT0hGJ+B113I6VvMUGxXdeuM7vUICABFV WJlSwM4ZhNgmROmUWpMpzw/+QWlAF1+Q4g2WjpYLCRpqAmYSyLu7MBdOa9XahdxW5I QNh0f0h8AmPSoomDM29sshb2gBm7rYyiFWugyRvjK60qoHD5WcF/yzf3RLBwIgHUF2 VHofUa0GkQpNsL6z6Adh4jNgRcEQnoZcgnopWkG47Q6Dx/Blcv7/dZme+37o2xMKs/ X/D6qwea5pz6bW8Vgclq1ed3L36g/KtXj4nUnI5DJA5w5b6nznHsMKwvxkILO4P9NX 1ZHlYFjxOgCBQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1928E1801D7 for ; Wed, 10 Jul 2024 06:37:30 +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 mail.sakiot.com (mail.sakiot.com [160.16.227.216]) (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 06:37:29 +0000 (UTC) Received: from smtpclient.apple (unknown [117.55.37.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.sakiot.com (Postfix) with ESMTPSA id 31D4A4011B for ; Wed, 10 Jul 2024 15:36:01 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sakiot.com; s=default; t=1720593361; bh=hl8EFjgIKJgas6OodUKedcXWfHE9QWOE1/PyHrD6Eg8=; h=From:Subject:Date:References:To:In-Reply-To:From; b=p5Ez/JDcDB7WSe664hRO9OfZV7SPjifuEY/slu+NAgK8ls3OV8+xJA4yAMalfiXfQ meVeM25EldwFWfweaJmerR0dDjdmoDjtLXyNfWm4xf85YD7SWdrzm2wBgqPSIQVZuo +pjjNSBEW+EUMVXisMfmw01X0jrngr53EHiXAmH4= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: [PHP-DEV] Re: [RFC] [Discussion] Fix up BCMath Number Class / Change GMP bool cast behavior Date: Wed, 10 Jul 2024 15:35:48 +0900 References: To: php internals In-Reply-To: Message-ID: X-Mailer: Apple Mail (2.3774.600.62) From: saki@sakiot.com (Saki Takamachi) Hi all, > Hi internals, >=20 > Created a follow-up RFC for the BCMath\Number class. This RFC also = contains proposed changes to GMP's bool cast. I have proposed similar = changes to BCMath, so for procedural efficiency I have combined them = into the same RFC. >=20 > Note that although they are combined into one RFC, these votes are = taken independently. >=20 > https://wiki.php.net/rfc/fix_up_bcmath_number_class >=20 > Regards, >=20 > Saki Added one more change to the RFC. Currently, there is no other expression for comparison in PHP called = "comp=E2=80=9D. The expression "cmp" is mainly used for functions, and = the expression "compare" is used for class methods. e.g. https://www.php.net/manual/ja/splpriorityqueue.compare.php https://www.php.net/manual/ja/collator.compare.php Therefore, follow these conventions and rename `comp()` to `compare()`. Regards, Saki=