Download src/php/php-src/ext/json/tests/bug66021.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 268 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/json/tests/bug66021.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/json/tests/bug66021.phpt
-
curl -L -o bug66021.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/json/tests/bug66021.phpt
268 Bytes
| --TEST-- | |
| Bug #66021 (Blank line inside empty array/object when JSON_PRETTY_PRINT is set) | |
| --FILE-- | |
| class Foo { | |
| private $bar = 'baz'; | |
| } | |
| echo json_encode(array(array(), (object) array(), new Foo), JSON_PRETTY_PRINT); | |
| --EXPECT-- | |
| [ | |
| [], | |
| {}, | |
| {} | |
| ] | |