Lines Matching refs:tzdb
542 static char* guess_timezone(const timelib_tzdb *tzdb);
910 const timelib_tzdb *tzdb = DATE_TIMEZONEDB; in PHP_MINFO_FUNCTION() local
915 php_info_print_table_row(2, "\"Olson\" Timezone Database Version", tzdb->version); in PHP_MINFO_FUNCTION()
917 php_info_print_table_row(2, "Default timezone", guess_timezone(tzdb)); in PHP_MINFO_FUNCTION()
925 static timelib_tzinfo *php_date_parse_tzfile(char *formal_tzname, const timelib_tzdb *tzdb) in php_date_parse_tzfile() argument
938 tzi = timelib_parse_tzfile(formal_tzname, tzdb); in php_date_parse_tzfile()
945 timelib_tzinfo *php_date_parse_tzfile_wrapper(char *formal_tzname, const timelib_tzdb *tzdb) in php_date_parse_tzfile_wrapper() argument
947 return php_date_parse_tzfile(formal_tzname, tzdb); in php_date_parse_tzfile_wrapper()
975 static char* guess_timezone(const timelib_tzdb *tzdb) in guess_timezone() argument
987 …(ztz) == IS_STRING && Z_STRLEN_P(ztz) > 0 && timelib_timezone_id_is_valid(Z_STRVAL_P(ztz), tzdb)) { in guess_timezone()
995 if (!timelib_timezone_id_is_valid(DATEG(default_timezone), tzdb)) { in guess_timezone()
1426 PHPAPI void php_date_set_tzdb(timelib_tzdb *tzdb) in php_date_set_tzdb() argument
1430 if (php_version_compare(tzdb->version, builtin->version) > 0) { in php_date_set_tzdb()
1431 php_date_global_timezone_db = tzdb; in php_date_set_tzdb()
4613 const timelib_tzdb *tzdb; in PHP_FUNCTION() local
4630 tzdb = DATE_TIMEZONEDB; in PHP_FUNCTION()
4631 item_count = tzdb->index_size; in PHP_FUNCTION()
4632 table = tzdb->index; in PHP_FUNCTION()
4638 if (tzdb->data[table[i].pos + 5] == option[0] && tzdb->data[table[i].pos + 6] == option[1]) { in PHP_FUNCTION()
4641 …_DATE_TIMEZONE_GROUP_ALL_W_BC || (check_id_allowed(table[i].id, what) && (tzdb->data[table[i].pos … in PHP_FUNCTION()
4653 const timelib_tzdb *tzdb; in PHP_FUNCTION() local
4655 tzdb = DATE_TIMEZONEDB; in PHP_FUNCTION()
4656 RETURN_STRING(tzdb->version); in PHP_FUNCTION()