|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78238 BCMath returns "-0"
Submitted: 2019-07-01 23:27 UTC Modified: 2019-11-07 11:30 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: Wes dot nospam at example dot org Assigned:
Status: Open Package: BC math related
PHP Version: 7.3.11 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: Wes dot nospam at example dot org
New email:
PHP Version: OS:


 [2019-07-01 23:27 UTC] Wes dot nospam at example dot org
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



Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-07-02 06:42 UTC]
Closely relared to bug #78071.
 [2019-07-18 13:30 UTC] test267 at yopmail dot com
The following pull request has been associated:

Patch Name: Implemented HTTP client
On GitHub:
 [2019-11-07 11:30 UTC]
-PHP Version: 7.4.0alpha2 +PHP Version: 7.3.11
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Apr 19 05:01:23 2021 UTC