|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-03-08 00:55 UTC] php at zeflo dot com
-Status: Open
+Status: Closed
[2014-03-08 00:55 UTC] php at zeflo dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 06:00:01 2025 UTC |
Description: ------------ I discovered tha jason_decode can't decode 0e+1. Is this a Bug or a Feature? Test script: --------------- Works: print_r(json_decode('{"var":0.e+1}')); print_r(json_decode('{"var":0.e-1}')); print_r(json_decode('{"var":0.0e+1}')); print_r(json_decode('{"var":0.0e-1}')); Will not Work: print_r(json_decode('{"var":0e+1}')); print_r(json_decode('{"var":0e-1}')); Expected result: ---------------- Every line should return: stdClass Object ( [var] => 0 ) Actual result: -------------- The last two lines return nothing.