Lines Matching refs:cal
147 static void _php_cal_info(int cal, zval *ret) in _php_cal_info() argument
153 calendar = &cal_conversion_table[cal]; in _php_cal_info()
175 zend_long cal = -1; in PHP_FUNCTION() local
177 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|l", &cal) == FAILURE) { in PHP_FUNCTION()
181 if (cal == -1) { in PHP_FUNCTION()
194 if (cal < 0 || cal >= CAL_NUM_CALS) { in PHP_FUNCTION()
199 _php_cal_info(cal, return_value); in PHP_FUNCTION()
206 zend_long cal, month, year; in PHP_FUNCTION() local
210 if (zend_parse_parameters(ZEND_NUM_ARGS(), "lll", &cal, &month, &year) == FAILURE) { in PHP_FUNCTION()
214 if (cal < 0 || cal >= CAL_NUM_CALS) { in PHP_FUNCTION()
219 calendar = &cal_conversion_table[cal]; in PHP_FUNCTION()
239 if (cal == CAL_FRENCH && sdn_next == 0) { in PHP_FUNCTION()
253 zend_long cal, month, day, year; in PHP_FUNCTION() local
255 if (zend_parse_parameters(ZEND_NUM_ARGS(), "llll", &cal, &month, &day, &year) != SUCCESS) { in PHP_FUNCTION()
259 if (cal < 0 || cal >= CAL_NUM_CALS) { in PHP_FUNCTION()
264 RETURN_LONG(cal_conversion_table[cal].to_jd(year, month, day)); in PHP_FUNCTION()
271 zend_long jd, cal; in PHP_FUNCTION() local
275 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ll", &jd, &cal) == FAILURE) { in PHP_FUNCTION()
279 if (cal < 0 || cal >= CAL_NUM_CALS) { in PHP_FUNCTION()
283 calendar = &cal_conversion_table[cal]; in PHP_FUNCTION()
297 if (cal != CAL_JEWISH || year > 0) { in PHP_FUNCTION()
308 if(cal == CAL_JEWISH) { in PHP_FUNCTION()