Lines Matching refs:DATEG
394 if (DATEG(timezone)) { in PHP_RINIT_FUNCTION()
395 efree(DATEG(timezone)); in PHP_RINIT_FUNCTION()
397 DATEG(timezone) = NULL; in PHP_RINIT_FUNCTION()
398 DATEG(tzcache) = NULL; in PHP_RINIT_FUNCTION()
399 DATEG(last_errors) = NULL; in PHP_RINIT_FUNCTION()
408 if (DATEG(timezone)) { in PHP_RSHUTDOWN_FUNCTION()
409 efree(DATEG(timezone)); in PHP_RSHUTDOWN_FUNCTION()
411 DATEG(timezone) = NULL; in PHP_RSHUTDOWN_FUNCTION()
419 if (DATEG(tzcache)) { in ZEND_MODULE_POST_ZEND_DEACTIVATE_D()
420 zend_hash_destroy(DATEG(tzcache)); in ZEND_MODULE_POST_ZEND_DEACTIVATE_D()
421 FREE_HASHTABLE(DATEG(tzcache)); in ZEND_MODULE_POST_ZEND_DEACTIVATE_D()
422 DATEG(tzcache) = NULL; in ZEND_MODULE_POST_ZEND_DEACTIVATE_D()
425 if (DATEG(last_errors)) { in ZEND_MODULE_POST_ZEND_DEACTIVATE_D()
426 timelib_error_container_dtor(DATEG(last_errors)); in ZEND_MODULE_POST_ZEND_DEACTIVATE_D()
427 DATEG(last_errors) = NULL; in ZEND_MODULE_POST_ZEND_DEACTIVATE_D()
444 DATEG(last_errors) = NULL; in PHP_MINIT_FUNCTION()
454 if (DATEG(last_errors)) { in PHP_MSHUTDOWN_FUNCTION()
455 timelib_error_container_dtor(DATEG(last_errors)); in PHP_MSHUTDOWN_FUNCTION()
459 DATEG(default_timezone) = NULL; in PHP_MSHUTDOWN_FUNCTION()
489 if(!DATEG(tzcache)) { in php_date_parse_tzfile()
490 ALLOC_HASHTABLE(DATEG(tzcache)); in php_date_parse_tzfile()
491 zend_hash_init(DATEG(tzcache), 4, NULL, _php_date_tzinfo_dtor, 0); in php_date_parse_tzfile()
494 if ((tzi = zend_hash_str_find_ptr(DATEG(tzcache), formal_tzname, strlen(formal_tzname))) != NULL) { in php_date_parse_tzfile()
500 zend_hash_str_add_ptr(DATEG(tzcache), formal_tzname, strlen(formal_tzname), tzi); in php_date_parse_tzfile()
520 DATEG(default_timezone) ? DATEG(default_timezone) : "UTC" in PHP_INI_MH()
537 if (DATEG(timezone) && (strlen(DATEG(timezone))) > 0) { in guess_timezone()
538 return DATEG(timezone); in guess_timezone()
541 if (!DATEG(default_timezone)) { in guess_timezone()
549 } else if (*DATEG(default_timezone)) { in guess_timezone()
550 return DATEG(default_timezone); in guess_timezone()
2328 if (DATEG(last_errors)) { in update_errors_warnings()
2329 timelib_error_container_dtor(DATEG(last_errors)); in update_errors_warnings()
2330 DATEG(last_errors) = NULL; in update_errors_warnings()
2338 DATEG(last_errors) = *last_errors; in update_errors_warnings()
2965 if (DATEG(last_errors)) { in PHP_FUNCTION()
2967 zval_from_error_container(return_value, DATEG(last_errors)); in PHP_FUNCTION()
5041 if (DATEG(timezone)) { in PHP_FUNCTION()
5042 efree(DATEG(timezone)); in PHP_FUNCTION()
5043 DATEG(timezone) = NULL; in PHP_FUNCTION()
5045 DATEG(timezone) = estrndup(zone, zone_len); in PHP_FUNCTION()