|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-06-03 17:18 UTC] cmb@php.net
[2021-06-03 17:39 UTC] kumar dot muthaiah at yahoo dot com
[2021-06-03 17:51 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Package: *General Issues
+Package: JSON related
-Assigned To:
+Assigned To: cmb
[2021-06-03 17:51 UTC] cmb@php.net
[2021-06-03 17:52 UTC] cmb@php.net
-Status: Closed
+Status: Not a bug
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 06:00:01 2025 UTC |
Description: ------------ json integer is converted to string in wordpress php 7.4 version for json_encode() function. Causes javascript in client side to not load the component that depends on json. I'm using Wordopress REST API. Test script: --------------- $p = {"id:": 1, "object": {"name": "kumar", "age": 10, "married": false}}; json_encode($p['object']); After conversion i get {"name": "kumar", "age": "10", "married": "false"} Actual result: -------------- {"name": "kumar", "age": 10, "married": false}