|  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-07-02 06:42 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.4.0alpha2 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
46 + 42 = ?
Subscribe to this entry?

 [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:
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Sep 17 16:01:27 2019 UTC