Bug #79908 [Com]: json_encode encodes negative zero as int
| From: | uknewstoday05 at gmail dot com | Date: | Tue, 21 Sep 2021 12:26:35 +0000 |
| Subject: | Bug #79908 [Com]: json_encode encodes negative zero as int | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-236726@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79908&edit=1
ID: 79908
Comment by: uknewstoday05 at gmail dot com
Reported by: stefan at HDmeteo dot com
Summary: json_encode encodes negative zero as int
Status: Re-Opened
Type: Bug
Package: JSON related
PHP Version: 7.4.8
Assigned To: bukka
Block user comment: N
Private report: N
New Comment:
https://dailynewscopy.com/
https://dailynewscopy.com/deals/
https://dailynewscopy.com/news/
https://dailynewscopy.com/news/sports/a
Previous Comments:
------------------------------------------------------------------------
[2021-09-21 12:25:55] uknewstoday04 at gmail dot com
https://newsveena.com/
https://newsveena.com/best-deals/
https://newsveena.com/news/entertainment/
https://newsveena.com/news/business/
------------------------------------------------------------------------
[2021-07-19 22:37:30] cmb@php.net
The fix has been reverted â re-opening.
------------------------------------------------------------------------
[2021-07-13 13:34:58] git@php.net
Automatic comment on behalf of cmb69
Revision: https://github.com/php/php-src/commit/717f1ed5e4b4b2083907dd085e66b377edad24b7
Log: Fix #79908: json_encode encodes negative zero as int
------------------------------------------------------------------------
[2021-07-13 11:15:47] cmb@php.net
The following pull request has been associated:
Patch Name: Fix #79908: json_decode decodes negative zero as positive zero
On GitHub: https://github.com/php/php-src/pull/7234
Patch: https://github.com/php/php-src/pull/7234.patch
------------------------------------------------------------------------
[2021-02-18 11:46:19] stasiukaitis dot saulius at gmail dot com
3rd party library stoped working after upgrade to PHP 7.4
This is because it compares data before and after encoding which becomes different.
https://github.com/psecio/jwt/blob/master/src/Psecio/Jwt/Jwt.php#L157
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=79908
--
Edit this bug report at https://bugs.php.net/bug.php?id=79908&edit=1