summaryrefslogtreecommitdiff
path: root/ext/json/tests/bug55543.phpt
blob: 8657fe77678b21ad4a9748a4ca80a4649c498ad5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Bug #55543 (json_encode() with JSON_NUMERIC_CHECK & numeric string properties)
--SKIPIF--
<?php if (!extension_loaded("json")) print "skip"; ?>
--FILE--
<?php
$a = new stdClass;
$a->{"1"} = "5";

var_dump(json_encode($a, JSON_NUMERIC_CHECK));
?>
--EXPECT--
string(7) "{"1":5}"