xref: /PHP-7.0/ext/json/tests/bug55543.phpt (revision 199b52c1)
1--TEST--
2Bug #55543 (json_encode() with JSON_NUMERIC_CHECK & numeric string properties)
3--SKIPIF--
4<?php if (!extension_loaded("json")) print "skip"; ?>
5--FILE--
6<?php
7$a = new stdClass;
8$a->{"1"} = "5";
9
10var_dump(json_encode($a, JSON_NUMERIC_CHECK));
11?>
12--EXPECT--
13string(7) "{"1":5}"
14