Download src/php/php-src/ext/calendar/tests/bug80185.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 495 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/calendar/tests/bug80185.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/calendar/tests/bug80185.phpt
-
curl -L -o bug80185.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/calendar/tests/bug80185.phpt
495 Bytes
| --TEST-- | |
| Bug #80185 (jdtounix() fails after 2037) | |
| --EXTENSIONS-- | |
| calendar | |
| --SKIPIF-- | |
| if (PHP_INT_SIZE != 8) die("skip for 64bit platforms only"); | |
| --FILE-- | |
| var_dump(jdtounix(2465712)); | |
| var_dump(jdtounix((int)(PHP_INT_MAX / 86400 + 2440588))); | |
| try { | |
| var_dump(jdtounix((int)(PHP_INT_MAX / 86400 + 2440589))); | |
| } catch (ValueError $ex) { | |
| echo $ex->getMessage(), PHP_EOL; | |
| } | |
| --EXPECT-- | |
| int(2170713600) | |
| int(9223372036854720000) | |
| jday must be between 2440588 and 106751993607888 | |