php.net |  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
Votes:1
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
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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
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


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-07-02 06:42 UTC] cmb@php.net
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:  https://github.com/php/web-bugs/pull/79
Patch:      https://github.com/php/web-bugs/pull/79.patch
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Aug 17 10:01:28 2019 UTC