Download src/php/php-src/ext/calendar/tests/bug55797_2.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 600 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/calendar/tests/bug55797_2.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/calendar/tests/bug55797_2.phpt
-
curl -L -o bug55797_2.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/calendar/tests/bug55797_2.phpt
600 Bytes
| --TEST-- | |
| Bug #55797: Integer overflow in SdnToGregorian leads to segfault (in optimized builds) | |
| --EXTENSIONS-- | |
| calendar | |
| --SKIPIF-- | |
| if (PHP_INT_SIZE == 4) { | |
| die("skip this test is for 64bit platform only"); | |
| } | |
| --FILE-- | |
| $x = 9223372036854743639; | |
| var_dump(cal_from_jd($x, CAL_GREGORIAN)); | |
| --EXPECTF-- | |
| array(9) { | |
| ["date"]=> | |
| string(5) "0/0/0" | |
| ["month"]=> | |
| int(0) | |
| ["day"]=> | |
| int(0) | |
| ["year"]=> | |
| int(0) | |
| ["dow"]=> | |
| int(%d) | |
| ["abbrevdayname"]=> | |
| string(%d) "%s" | |
| ["dayname"]=> | |
| string(%d) "%s" | |
| ["abbrevmonth"]=> | |
| string(0) "" | |
| ["monthname"]=> | |
| string(0) "" | |
| } | |