mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
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.
31 lines
505 B
PHP
31 lines
505 B
PHP
--TEST--
|
|
Bug #71894 (AddressSanitizer: global-buffer-overflow in zif_cal_from_jd)
|
|
--EXTENSIONS--
|
|
calendar
|
|
--FILE--
|
|
<?php
|
|
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) ""
|