1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/calendar/tests/bug53574_2.phpt
Max Semenik 56f90492d6 Migrate skip checks to --EXTENSIONS--, p1
For rationale, see https://github.com/php/php-src/pull/6787

Extensions migrated in this part:
* bcmath
* bz2
* calendar
* com_dotnet
* ctype

Closes GH-6797.
2021-03-22 17:51:02 +01:00

38 lines
578 B
PHP

--TEST--
Bug #53574 (Integer overflow in SdnToJulian; leads to segfault)
--EXTENSIONS--
calendar
--SKIPIF--
<?php
if (PHP_INT_SIZE == 4) {
die("skip this test is for 64bit platform only");
}
?>
--FILE--
<?php
$x = 3315881921229094912;
var_dump(cal_from_jd($x, CAL_JULIAN));
?>
--EXPECT--
array(9) {
["date"]=>
string(5) "0/0/0"
["month"]=>
int(0)
["day"]=>
int(0)
["year"]=>
int(0)
["dow"]=>
int(3)
["abbrevdayname"]=>
string(3) "Wed"
["dayname"]=>
string(9) "Wednesday"
["abbrevmonth"]=>
string(0) ""
["monthname"]=>
string(0) ""
}