Lines Matching refs:tzdb

548 static char* guess_timezone(const timelib_tzdb *tzdb);
922 const timelib_tzdb *tzdb = DATE_TIMEZONEDB; in PHP_MINFO_FUNCTION() local
927 php_info_print_table_row(2, "\"Olson\" Timezone Database Version", tzdb->version); in PHP_MINFO_FUNCTION()
929 php_info_print_table_row(2, "Default timezone", guess_timezone(tzdb)); in PHP_MINFO_FUNCTION()
937 static timelib_tzinfo *php_date_parse_tzfile(char *formal_tzname, const timelib_tzdb *tzdb) in php_date_parse_tzfile() argument
950 tzi = timelib_parse_tzfile(formal_tzname, tzdb); in php_date_parse_tzfile()
957 timelib_tzinfo *php_date_parse_tzfile_wrapper(char *formal_tzname, const timelib_tzdb *tzdb) in php_date_parse_tzfile_wrapper() argument
959 return php_date_parse_tzfile(formal_tzname, tzdb); in php_date_parse_tzfile_wrapper()
987 static char* guess_timezone(const timelib_tzdb *tzdb) in guess_timezone() argument
999 …(ztz) == IS_STRING && Z_STRLEN_P(ztz) > 0 && timelib_timezone_id_is_valid(Z_STRVAL_P(ztz), tzdb)) { in guess_timezone()
1007 if (!timelib_timezone_id_is_valid(DATEG(default_timezone), tzdb)) { in guess_timezone()
1439 PHPAPI void php_date_set_tzdb(timelib_tzdb *tzdb) in php_date_set_tzdb() argument
1443 if (php_version_compare(tzdb->version, builtin->version) > 0) { in php_date_set_tzdb()
1444 php_date_global_timezone_db = tzdb; in php_date_set_tzdb()
4743 const timelib_tzdb *tzdb; in PHP_FUNCTION() local
4760 tzdb = DATE_TIMEZONEDB; in PHP_FUNCTION()
4761 item_count = tzdb->index_size; in PHP_FUNCTION()
4762 table = tzdb->index; in PHP_FUNCTION()
4768 if (tzdb->data[table[i].pos + 5] == option[0] && tzdb->data[table[i].pos + 6] == option[1]) { in PHP_FUNCTION()
4771 …_DATE_TIMEZONE_GROUP_ALL_W_BC || (check_id_allowed(table[i].id, what) && (tzdb->data[table[i].pos … in PHP_FUNCTION()
4783 const timelib_tzdb *tzdb; in PHP_FUNCTION() local
4785 tzdb = DATE_TIMEZONEDB; in PHP_FUNCTION()
4786 RETURN_STRING(tzdb->version); in PHP_FUNCTION()