mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
32a1ebbd43
These are no longer needed after https://wiki.php.net/rfc/always_enable_json Closes GH-5637
12 lines
221 B
PHP
12 lines
221 B
PHP
--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}"
|