Download src/php/php-src/ext/json/tests/bug72787.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/json/tests/bug72787.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/json/tests/bug72787.phpt
-
curl -L -o bug72787.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/json/tests/bug72787.phpt
362 Bytes
| --TEST-- | |
| Bug #72787 (json_decode reads out of bounds) | |
| --SKIPIF-- | |
| if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); | |
| --FILE-- | |
| try { | |
| var_dump(json_decode('[]', false, 0x100000000)); | |
| } catch (\ValueError $e) { | |
| echo $e->getMessage() . \PHP_EOL; | |
| } | |
| --EXPECTF-- | |
| json_decode(): Argument #3 ($depth) must be less than %d | |