dis-bench / src /php /php-src /ext /json /tests /bug55543.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
221 Bytes
--TEST--
Bug #55543 (json_encode() with JSON_NUMERIC_CHECK & numeric string properties)
--FILE--
<?php
$a = new stdClass;
$a->{"1"} = "5";
var_dump(json_encode($a, JSON_NUMERIC_CHECK));
?>
--EXPECT--
string(7) "{"1":5}"