mirror of
https://github.com/php/php-src.git
synced 2025-01-25 05:04:20 +08:00
Test for bug #45791
This commit is contained in:
parent
cae85c867a
commit
f3013d0524
13
ext/json/tests/bug45791.phpt
Normal file
13
ext/json/tests/bug45791.phpt
Normal file
@ -0,0 +1,13 @@
|
||||
--TEST--
|
||||
Bug #45791 (json_decode() does not handle number 0e0)
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
var_dump(json_decode('{"zero": 0e0}'));
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
object(stdClass)#1 (1) {
|
||||
[u"zero"]=>
|
||||
float(0)
|
||||
}
|
Loading…
Reference in New Issue
Block a user