Lines Matching refs:cal
263 static void _php_cal_info(int cal, zval **ret) in _php_cal_info() argument
269 calendar = &cal_conversion_table[cal]; in _php_cal_info()
293 long cal = -1; in PHP_FUNCTION() local
296 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &cal) == FAILURE) { in PHP_FUNCTION()
300 if (cal == -1) { in PHP_FUNCTION()
315 if (cal != -1 && (cal < 0 || cal >= CAL_NUM_CALS)) { in PHP_FUNCTION()
316 php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid calendar ID %ld.", cal); in PHP_FUNCTION()
320 _php_cal_info(cal, &return_value); in PHP_FUNCTION()
329 long cal, month, year; in PHP_FUNCTION() local
333 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lll", &cal, &month, &year) == FAILURE) { in PHP_FUNCTION()
337 if (cal < 0 || cal >= CAL_NUM_CALS) { in PHP_FUNCTION()
338 php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid calendar ID %ld.", cal); in PHP_FUNCTION()
342 calendar = &cal_conversion_table[cal]; in PHP_FUNCTION()
373 long cal, month, day, year; in PHP_FUNCTION() local
375 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llll", &cal, &month, &day, &year) != SUCCESS… in PHP_FUNCTION()
379 if (cal < 0 || cal >= CAL_NUM_CALS) { in PHP_FUNCTION()
380 php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid calendar ID %ld.", cal); in PHP_FUNCTION()
384 RETURN_LONG(cal_conversion_table[cal].to_jd(year, month, day)); in PHP_FUNCTION()
392 long jd, cal; in PHP_FUNCTION() local
397 if (zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "ll", &jd, &cal) == FAILURE) { in PHP_FUNCTION()
401 if (cal < 0 || cal >= CAL_NUM_CALS) { in PHP_FUNCTION()
402 php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid calendar ID %ld", cal); in PHP_FUNCTION()
405 calendar = &cal_conversion_table[cal]; in PHP_FUNCTION()
424 if(cal == CAL_JEWISH) { in PHP_FUNCTION()