Annotation of embedaddon/php/ext/json/tests/bug55543.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #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: 
                     10: var_dump(json_encode($a, JSON_NUMERIC_CHECK));
                     11: ?>
                     12: --EXPECT--
                     13: string(7) "{"1":5}"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>