Download src/php/php-src/ext/date/tests/005.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 689 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/date/tests/005.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/date/tests/005.phpt
-
curl -L -o 005.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/date/tests/005.phpt
689 Bytes
| --TEST-- | |
| i() and invalid params | |
| --FILE-- | |
| <?php | |
| date_default_timezone_set('UTC'); | |
| $t = mk(0,0,0, 6, 27, 2006); | |
| var_dump(i(1,1)); | |
| var_dump(i("")); | |
| var_dump(i(0)); | |
| var_dump(i("B", $t)); | |
| var_dump(i("[", $t)); | |
| var_dump(i("'")); | |
| echo "Done\n"; | |
| ?> | |
| --EXPECTF-- | |
| Warning: i(): Unrecognized date format token in %s on line %d | |
| bool(false) | |
| Warning: i(): idate format is one char in %s on line %d | |
| bool(false) | |
| Warning: i(): Unrecognized date format token in %s on line %d | |
| bool(false) | |
| (41) | |
| Warning: i(): Unrecognized date format token in %s on line %d | |
| bool(false) | |
| Warning: i(): Unrecognized date format token in %s on line %d | |
| bool(false) | |
| Done | |