37 bool year_is_null = 1;
40 "|l!l", &year, &year_is_null, &method) ==
FAILURE) {
53 year = 1900 + b.tm_year;
57 if (year <= 0 || year > max_year) {
62 #ifdef ZEND_ENABLE_ZVAL_LONG64
64 if (gm && year < 1970) {
70 if (gm && year > 2000000000) {
77 if (gm && (year < 1970 || year > 2037)) {
84 golden = (year % 19) + 1;
90 dom = (year + (year/4) + 5) % 7;
95 pfm = (3 - (11*golden) - 7) % 30;
100 dom = (year + (year/4) - (year/100) + (year/400)) % 7;
105 solar = (year-1600)/100 - (year-1600)/400;
106 lunar = (((year-1400) / 100) * 8) / 25;
108 pfm = (3 - (11*golden) + solar - lunar) % 30;
114 if ((pfm == 29) || (pfm == 28 && golden > 11)) {
118 tmp = (4-pfm-dom) % 7;
123 easter = pfm + tmp + 1;
127 te.tm_year = year-1900;
134 te.tm_mday = easter+21;
137 te.tm_mday = easter-10;
easter_days(?int $year=null, int $mode=CAL_EASTER_DEFAULT)
easter_date(?int $year=null, int $mode=CAL_EASTER_DEFAULT)
#define CAL_EASTER_ALWAYS_GREGORIAN
#define CAL_EASTER_DEFAULT
#define CAL_EASTER_ALWAYS_JULIAN
mktime(int $hour, ?int $minute=null, ?int $second=null, ?int $month=null, ?int $day=null, ?int $year=null)
PHPAPI struct tm * php_localtime_r(const time_t *const timep, struct tm *p_tm)
#define INTERNAL_FUNCTION_PARAMETERS
#define INTERNAL_FUNCTION_PARAM_PASSTHRU
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec,...)
ZEND_API ZEND_COLD void zend_argument_value_error(uint32_t arg_num, const char *format,...)