summaryrefslogtreecommitdiff
path: root/ext/json/tests/bug45791.phpt
blob: 5737ade02584d52396a93cd0d7bfe05ccfff1582 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Bug #45791 (json_decode() does not handle number 0e0)
--FILE--
<?php

var_dump(json_decode('{"zero": 0e0}'));

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