Lines Matching refs:DATEG
698 if (DATEG(timezone)) { in PHP_RINIT_FUNCTION()
699 efree(DATEG(timezone)); in PHP_RINIT_FUNCTION()
701 DATEG(timezone) = NULL; in PHP_RINIT_FUNCTION()
702 DATEG(tzcache) = NULL; in PHP_RINIT_FUNCTION()
703 DATEG(last_errors) = NULL; in PHP_RINIT_FUNCTION()
712 if (DATEG(timezone)) { in PHP_RSHUTDOWN_FUNCTION()
713 efree(DATEG(timezone)); in PHP_RSHUTDOWN_FUNCTION()
715 DATEG(timezone) = NULL; in PHP_RSHUTDOWN_FUNCTION()
716 if(DATEG(tzcache)) { in PHP_RSHUTDOWN_FUNCTION()
717 zend_hash_destroy(DATEG(tzcache)); in PHP_RSHUTDOWN_FUNCTION()
718 FREE_HASHTABLE(DATEG(tzcache)); in PHP_RSHUTDOWN_FUNCTION()
719 DATEG(tzcache) = NULL; in PHP_RSHUTDOWN_FUNCTION()
721 if (DATEG(last_errors)) { in PHP_RSHUTDOWN_FUNCTION()
722 timelib_error_container_dtor(DATEG(last_errors)); in PHP_RSHUTDOWN_FUNCTION()
723 DATEG(last_errors) = NULL; in PHP_RSHUTDOWN_FUNCTION()
874 DATEG(last_errors) = NULL; in PHP_MINIT_FUNCTION()
884 if (DATEG(last_errors)) { in PHP_MSHUTDOWN_FUNCTION()
885 timelib_error_container_dtor(DATEG(last_errors)); in PHP_MSHUTDOWN_FUNCTION()
889 DATEG(default_timezone) = NULL; in PHP_MSHUTDOWN_FUNCTION()
917 if(!DATEG(tzcache)) { in php_date_parse_tzfile()
918 ALLOC_HASHTABLE(DATEG(tzcache)); in php_date_parse_tzfile()
919 zend_hash_init(DATEG(tzcache), 4, NULL, _php_date_tzinfo_dtor, 0); in php_date_parse_tzfile()
922 …if (zend_hash_find(DATEG(tzcache), formal_tzname, strlen(formal_tzname) + 1, (void **) &ptzi) == S… in php_date_parse_tzfile()
928 …zend_hash_add(DATEG(tzcache), formal_tzname, strlen(formal_tzname) + 1, (void *) &tzi, sizeof(time… in php_date_parse_tzfile()
948 DATEG(timezone_valid) = 0; in PHP_INI_MH()
950 if (!timelib_timezone_id_is_valid(DATEG(default_timezone), DATE_TIMEZONEDB)) { in PHP_INI_MH()
953 DATEG(timezone_valid) = 1; in PHP_INI_MH()
965 if (DATEG(timezone) && (strlen(DATEG(timezone))) > 0) { in guess_timezone()
966 return DATEG(timezone); in guess_timezone()
969 if (!DATEG(default_timezone)) { in guess_timezone()
977 } else if (*DATEG(default_timezone)) { in guess_timezone()
978 if (DATEG(timezone_valid) == 1) { in guess_timezone()
979 return DATEG(default_timezone); in guess_timezone()
982 if (!timelib_timezone_id_is_valid(DATEG(default_timezone), tzdb)) { in guess_timezone()
983 …valid date.timezone value '%s', we selected the timezone 'UTC' for now.", DATEG(default_timezone)); in guess_timezone()
987 DATEG(timezone_valid) = 1; in guess_timezone()
988 return DATEG(default_timezone); in guess_timezone()
2560 if (DATEG(last_errors)) { in update_errors_warnings()
2561 timelib_error_container_dtor(DATEG(last_errors)); in update_errors_warnings()
2562 DATEG(last_errors) = NULL; in update_errors_warnings()
2564 DATEG(last_errors) = last_errors; in update_errors_warnings()
2948 if (DATEG(last_errors)) { in PHP_FUNCTION()
2950 zval_from_error_container(return_value, DATEG(last_errors)); in PHP_FUNCTION()
4700 if (DATEG(timezone)) { in PHP_FUNCTION()
4701 efree(DATEG(timezone)); in PHP_FUNCTION()
4702 DATEG(timezone) = NULL; in PHP_FUNCTION()
4704 DATEG(timezone) = estrndup(zone, zone_len); in PHP_FUNCTION()