|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-08-13 07:05 UTC] clay at killersoft dot com
Description:
------------
JSON decoder returns NULL when passed a string containing 'true'.
Reproduce code:
---------------
var_dump(json_decode('true'));
Expected result:
----------------
bool(true)
Actual result:
--------------
NULL
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
var_dump(json_decode('false')); Should return: bool(false); Actually returns: NULL