Download src/php/php-src/ext/calendar/tests/bug71894.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 505 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/calendar/tests/bug71894.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/calendar/tests/bug71894.phpt
-
curl -L -o bug71894.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/calendar/tests/bug71894.phpt
505 Bytes
| --TEST-- | |
| Bug #71894 (AddressSanitizer: global-buffer-overflow in zif_cal_from_jd) | |
| --EXTENSIONS-- | |
| calendar | |
| --FILE-- | |
| var_dump(cal_from_jd(347997, CAL_JEWISH)); | |
| var_dump(jdmonthname(347997,CAL_MONTH_JEWISH)); | |
| --EXPECT-- | |
| array(9) { | |
| ["date"]=> | |
| string(5) "0/0/0" | |
| ["month"]=> | |
| int(0) | |
| ["day"]=> | |
| int(0) | |
| ["year"]=> | |
| int(0) | |
| ["dow"]=> | |
| NULL | |
| ["abbrevdayname"]=> | |
| string(0) "" | |
| ["dayname"]=> | |
| string(0) "" | |
| ["abbrevmonth"]=> | |
| string(0) "" | |
| ["monthname"]=> | |
| string(0) "" | |
| } | |
| string(0) "" | |