mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
7ab39e2fae
The French calendar ends on 0014-13-05, so trying to calculate the Julian day of 0015-01-01 fails. We cater to that by returning the hard-coded value.
13 lines
259 B
PHP
13 lines
259 B
PHP
--TEST--
|
|
Bug #67976 (cal_days_month() fails for final month of the French calendar)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('calendar')) die('skip ext/calendar required');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(cal_days_in_month(CAL_FRENCH, 13, 14));
|
|
?>
|
|
--EXPECT--
|
|
int(5)
|