Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128077 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 lists.php.net (Postfix) with ESMTPS id 0137D1A00BC for ; Wed, 16 Jul 2025 11:57:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1752666952; bh=7p6JRnZx067bEjcCoVZGKkTf75YqxQPdWDkk1SmthKo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=lCWT6VeICPXaouuEX7GL9CIqzdtX2NxvGb57gEzloOSEB7dRiNywEoqmOPBZMYfbM o6uy2s+hRnke5Sal/LR2FgaTsL2S5Si/mak5uIeUqZmDqIzQT8tTtkiT+sx6WmheT9 hKSoX25jEpctvYMlr232SqnM7VaAfjKNtQ/ITle6s6mf923I0MWhVOmMClQeKHqkbZ BCqwNWpBOKF9Jalltf+c/Uf+JcoVaCuUFY/RT5/uqiHocPC4xbkLO+5v9USTIxBdlC k37b0RaQPrjcvJI3kDXmq18qcKIuoArGvnm5n8jelYEj7D/nHZ87+TPyqid66kznvW 5vD3k9A5hNfWg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8C790180039 for ; Wed, 16 Jul 2025 11:55:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from forward501a.mail.yandex.net (forward501a.mail.yandex.net [178.154.239.81]) (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, 16 Jul 2025 11:55:40 +0000 (UTC) Received: from mail-nwsmtp-smtp-production-main-74.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-74.vla.yp-c.yandex.net [IPv6:2a02:6b8:c2a:928:0:640:fc14:0]) by forward501a.mail.yandex.net (Yandex) with ESMTPS id 2CC716354A for ; Wed, 16 Jul 2025 14:57:25 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-74.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id NvKkFeCMweA0-ozlozhSn; Wed, 16 Jul 2025 14:57:24 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=php.watch; s=mail; t=1752667044; bh=7p6JRnZx067bEjcCoVZGKkTf75YqxQPdWDkk1SmthKo=; h=To:Subject:Message-ID:References:Date:From:In-Reply-To:Cc; b=Ictz1AYaEpqiVCD6vIO/0iyoR9FKNekEP8vXuN7Dg4YsyoR37j5wM+SPKUtFu2Gua XfV64ZBMrXya+xpqavlamkdlgIGGod0z+k6zcRPeTS9N0kv13pfVtjqCYpJuDMAJN9 C2aFihwEk369iNLgl+vYkkIbAtak/haPbAJHkSMk= Authentication-Results: mail-nwsmtp-smtp-production-main-74.vla.yp-c.yandex.net; dkim=pass header.i=@php.watch Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-60c01b983b6so1807682a12.0 for ; Wed, 16 Jul 2025 04:57:24 -0700 (PDT) X-Gm-Message-State: AOJu0YwZNtKfFZdKFyNeCXUjWCDXZA6FjX+n04ViqHRdqQRpi4BVQC5z XV49ikNO0DvuVFyPumNQmxTNOLkrF2e6y1jcgCYLOdBoMe/ULa3i5dLc0s0j/j8jPme89Hc8ZHE Qy6vWnDwgH4iaILeQfNQUowcv5RKAmcw= X-Google-Smtp-Source: AGHT+IHZ64lynn8kP1lXFpYKGP8PD+akkZxnDAQqTjnwRT/MDW79El5H4UjNXZxHVXPgYRejCNyww7H8N28pH48WkXg= X-Received: by 2002:a05:6402:2343:b0:601:a16e:4827 with SMTP id 4fb4d7f45d1cf-612664871d1mr6214245a12.3.1752667043682; Wed, 16 Jul 2025 04:57:23 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 16 Jul 2025 17:26:55 +0530 X-Gmail-Original-Message-ID: X-Gm-Features: Ac12FXzs9GrGSCeujT6Dk969B5vf9sXod7AFhgGscyt0Qgq6qas2w9pF3mEf8SY Message-ID: Subject: Re: [PHP-DEV] [DISCUSSION] bcmath: adding bcgetopts() and bcsetopts() to get or set bcmath options To: Quake MMO Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" From: ayesh@php.watch (Ayesh Karunaratne) > Would adding a bcgetopts(): int and a bcsetopts(int $opts): void calls > be useful? > > At this time there's no way to influence bcmath's behavior other than > bcscale(). > How about adding these as methods/properties to the `BcMath\Number` class? `BcMath\Number` does not use the `bcmath.scale` INI directive, and in my opinion, it is the correct way to do it. Everything that affects the operations are just there in the code, and there is no hidden global state.