Download src/php/php-src/ext/json/tests/bug55543.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 221 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/json/tests/bug55543.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/json/tests/bug55543.phpt
-
curl -L -o bug55543.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/json/tests/bug55543.phpt
221 Bytes
| --TEST-- | |
| Bug #55543 (json_encode() with JSON_NUMERIC_CHECK & numeric string properties) | |
| --FILE-- | |
| $a = new stdClass; | |
| $a->{"1"} = "5"; | |
| var_dump(json_encode($a, JSON_NUMERIC_CHECK)); | |
| --EXPECT-- | |
| string(7) "{"1":5}" | |