Bug #78238 [Ver->Csd]: BCMath returns "-0"

From: Date: Fri, 16 Jul 2021 14:02:38 +0000
Subject: Bug #78238 [Ver->Csd]: BCMath returns "-0"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235084@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78238&edit=1 ID: 78238 Updated by: git@php.net Reported by: Wes dot nospam at example dot org Summary: BCMath returns "-0" -Status: Verified +Status: Closed Type: Bug Package: BC math related PHP Version: 7.3.11 Assigned To: cmb Block user comment: N Private report: N New Comment: Automatic comment on behalf of cmb69 Revision: https://github.com/php/php-src/commit/bcb89c75ece71869c99032e078e0ec4fe12b2645 Log: Fix #78238: BCMath returns "-0" Previous Comments: ------------------------------------------------------------------------ [2021-07-16 12:51:43] cmb@php.net Related To: Bug #78071 ------------------------------------------------------------------------ [2021-07-16 12:51:24] cmb@php.net The following pull request has been associated: Patch Name: Fix #78238: BCMath returns "-0" On GitHub: https://github.com/php/php-src/pull/7250 Patch: https://github.com/php/php-src/pull/7250.patch ------------------------------------------------------------------------ [2019-07-18 13:30:29] test267 at yopmail dot com The following pull request has been associated: Patch Name: Implemented HTTP client On GitHub: https://github.com/php/web-bugs/pull/79 Patch: https://github.com/php/web-bugs/pull/79.patch ------------------------------------------------------------------------ [2019-07-02 06:42:27] cmb@php.net Closely relared to bug #78071. ------------------------------------------------------------------------ [2019-07-01 23:27:09] Wes dot nospam at example dot org Description: ------------ Not sure if we care about not returning "-0". If we do, the reproduce code is: echo bcadd("0", "-0.1"); // returns "-0" Used to work back in PHP 4 (!!!) never worked in 5 and 7 https://3v4l.org/hammP Thanks ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78238&edit=1

« previous php.bugs (#235084) next »