|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2015-03-11 18:49 UTC] bukka@php.net
-Status: Open
+Status: Wont fix
-Assigned To:
+Assigned To: bukka
[2015-03-11 18:49 UTC] bukka@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 20:00:01 2025 UTC |
Description: ------------ Normally JSON_BIGINT_AS_STRING is only used on decodes, but I think it's useful in encode as well. i.e. for sending json to a javascript client, which would convert bigints to floats unless the quotes were added. Test script: --------------- var_dump(json_encode(['a'=>974110684307885632], JSON_BIGINT_AS_STRING)); Expected result: ---------------- string(26) "{"a":"974110684307885632"}" Actual result: -------------- string(24) "{"a":974110684307885632}"