Download src/php/php-src/ext/json/tests/008.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 354 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/json/tests/008.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/json/tests/008.phpt
-
curl -L -o 008.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/json/tests/008.phpt
354 Bytes
| --TEST-- | |
| json_decode() with large integers | |
| --FILE-- | |
| $json = '{"largenum":123456789012345678901234567890}'; | |
| $x = json_decode($json); | |
| var_dump($x->largenum); | |
| $x = json_decode($json, false, 512, JSON_BIGINT_AS_STRING); | |
| var_dump($x->largenum); | |
| echo "Done\n"; | |
| --EXPECT-- | |
| float(1.2345678901234568E+29) | |
| string(30) "123456789012345678901234567890" | |
| Done | |