ID:               45791
 Updated by:       scott...@php.net
 Reported By:      php at rjbs dot manxome dot org
-Status:           Verified
+Status:           Closed
 Bug Type:         JSON related
 Operating System: *
 PHP Version:      5.2CVS, 5.3CVS, 6CVS (2008-08-25)
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

This has been fixed in the PHP 5.3 branch, If I can get a simpler fix
for 5.2 I will add it there too.


Previous Comments:
------------------------------------------------------------------------

[2008-08-11 22:53:17] php at rjbs dot manxome dot org

Description:
------------
as a number literal, 0e0 is valid JSON.  json_decode translates it into

NULL

Reproduce code:
---------------
~$ php
<? var_dump(json_decode('{"zero": 0e0}')) ?>



Expected result:
----------------
something like:

object(stdClass)#1 (1) {
  ["zero"]=>
  float(0)
}




Actual result:
--------------
NULL


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45791&edit=1

Reply via email to