1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00
Files
archived-php-src/ext/json/tests/bug45791.phpt
2009-03-17 23:29:39 +00:00

16 lines
251 B
PHP

--TEST--
Bug #45791 (json_decode() does not handle number 0e0)
--SKIPIF--
<?php if (!extension_loaded("json")) print "skip"; ?>
--FILE--
<?php
var_dump(json_decode('{"zero": 0e0}'));
?>
--EXPECT--
object(stdClass)#1 (1) {
[u"zero"]=>
float(0)
}