Bug #78238 [PATCH]: BCMath returns "-0"

From: Date: Fri, 16 Jul 2021 12:51:24 +0000
Subject: Bug #78238 [PATCH]: BCMath returns "-0"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235080@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 Patch added by: cmb@php.net Reported by: Wes dot nospam at example dot org Summary: BCMath returns "-0" Status: Verified Type: Bug Package: BC math related PHP Version: 7.3.11 Assigned To: cmb Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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 (#235080) next »