|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-11-23 15:17 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
-Package: Reproducible crash
+Package: JSON related
[2017-11-23 15:17 UTC] requinix@php.net
[2017-11-23 15:28 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 19:00:01 2025 UTC |
Description: ------------ I have PHP version 7.1.7 Test script: --------------- $amount = 26000; \Log::info("A: " . $amount); $json = json_encode([ 'amount' => $amount, ]); \Log::info("J: " . $json); Expected result: ---------------- Expected Behavior Gives following output: info log [13:26:42] LOG.info: A: 26000 info log [13:26:42] LOG.info: J: {"amount":26000} Actual result: -------------- Gives following output: info log [13:26:42] LOG.info: A: 26000 info log [13:26:42] LOG.info: J: {"amount":25999.999999999996}