Lines Matching refs:cal
260 static void _php_cal_info(int cal, zval **ret) in _php_cal_info() argument
266 calendar = &cal_conversion_table[cal]; in _php_cal_info()
290 long cal = -1; in PHP_FUNCTION() local
293 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &cal) == FAILURE) { in PHP_FUNCTION()
297 if (cal == -1) { in PHP_FUNCTION()
312 if (cal != -1 && (cal < 0 || cal >= CAL_NUM_CALS)) { in PHP_FUNCTION()
313 php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid calendar ID %ld.", cal); in PHP_FUNCTION()
317 _php_cal_info(cal, &return_value); in PHP_FUNCTION()
326 long cal, month, year; in PHP_FUNCTION() local
330 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lll", &cal, &month, &year) == FAILURE) { in PHP_FUNCTION()
334 if (cal < 0 || cal >= CAL_NUM_CALS) { in PHP_FUNCTION()
335 php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid calendar ID %ld.", cal); in PHP_FUNCTION()
339 calendar = &cal_conversion_table[cal]; in PHP_FUNCTION()
370 long cal, month, day, year; in PHP_FUNCTION() local
372 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llll", &cal, &month, &day, &year) != SUCCESS… in PHP_FUNCTION()
376 if (cal < 0 || cal >= CAL_NUM_CALS) { in PHP_FUNCTION()
377 php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid calendar ID %ld.", cal); in PHP_FUNCTION()
381 RETURN_LONG(cal_conversion_table[cal].to_jd(year, month, day)); in PHP_FUNCTION()
389 long jd, cal; in PHP_FUNCTION() local
394 if (zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "ll", &jd, &cal) == FAILURE) { in PHP_FUNCTION()
398 if (cal < 0 || cal >= CAL_NUM_CALS) { in PHP_FUNCTION()
399 php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid calendar ID %ld", cal); in PHP_FUNCTION()
402 calendar = &cal_conversion_table[cal]; in PHP_FUNCTION()