Lines Matching refs:DATEG

413 	if (DATEG(timezone)) {  in PHP_RINIT_FUNCTION()
414 efree(DATEG(timezone)); in PHP_RINIT_FUNCTION()
416 DATEG(timezone) = NULL; in PHP_RINIT_FUNCTION()
417 DATEG(tzcache) = NULL; in PHP_RINIT_FUNCTION()
418 DATEG(last_errors) = NULL; in PHP_RINIT_FUNCTION()
427 if (DATEG(timezone)) { in PHP_RSHUTDOWN_FUNCTION()
428 efree(DATEG(timezone)); in PHP_RSHUTDOWN_FUNCTION()
430 DATEG(timezone) = NULL; in PHP_RSHUTDOWN_FUNCTION()
438 if (DATEG(tzcache)) { in ZEND_MODULE_POST_ZEND_DEACTIVATE_D()
439 zend_hash_destroy(DATEG(tzcache)); in ZEND_MODULE_POST_ZEND_DEACTIVATE_D()
440 FREE_HASHTABLE(DATEG(tzcache)); in ZEND_MODULE_POST_ZEND_DEACTIVATE_D()
441 DATEG(tzcache) = NULL; in ZEND_MODULE_POST_ZEND_DEACTIVATE_D()
444 if (DATEG(last_errors)) { in ZEND_MODULE_POST_ZEND_DEACTIVATE_D()
445 timelib_error_container_dtor(DATEG(last_errors)); in ZEND_MODULE_POST_ZEND_DEACTIVATE_D()
446 DATEG(last_errors) = NULL; in ZEND_MODULE_POST_ZEND_DEACTIVATE_D()
463 DATEG(last_errors) = NULL; in PHP_MINIT_FUNCTION()
473 if (DATEG(last_errors)) { in PHP_MSHUTDOWN_FUNCTION()
474 timelib_error_container_dtor(DATEG(last_errors)); in PHP_MSHUTDOWN_FUNCTION()
478 DATEG(default_timezone) = NULL; in PHP_MSHUTDOWN_FUNCTION()
508 if(!DATEG(tzcache)) { in php_date_parse_tzfile()
509 ALLOC_HASHTABLE(DATEG(tzcache)); in php_date_parse_tzfile()
510 zend_hash_init(DATEG(tzcache), 4, NULL, _php_date_tzinfo_dtor, 0); in php_date_parse_tzfile()
513 if ((tzi = zend_hash_str_find_ptr(DATEG(tzcache), formal_tzname, strlen(formal_tzname))) != NULL) { in php_date_parse_tzfile()
519 zend_hash_str_add_ptr(DATEG(tzcache), formal_tzname, strlen(formal_tzname), tzi); in php_date_parse_tzfile()
539 DATEG(default_timezone) ? DATEG(default_timezone) : "UTC" in PHP_INI_MH()
556 if (DATEG(timezone) && (strlen(DATEG(timezone))) > 0) { in guess_timezone()
557 return DATEG(timezone); in guess_timezone()
560 if (!DATEG(default_timezone)) { in guess_timezone()
568 } else if (*DATEG(default_timezone)) { in guess_timezone()
569 return DATEG(default_timezone); in guess_timezone()
2329 if (DATEG(last_errors)) { in update_errors_warnings()
2330 timelib_error_container_dtor(DATEG(last_errors)); in update_errors_warnings()
2331 DATEG(last_errors) = NULL; in update_errors_warnings()
2339 DATEG(last_errors) = *last_errors; in update_errors_warnings()
3090 if (DATEG(last_errors)) { in PHP_FUNCTION()
3092 zval_from_error_container(return_value, DATEG(last_errors)); in PHP_FUNCTION()
5417 if (DATEG(timezone)) { in PHP_FUNCTION()
5418 efree(DATEG(timezone)); in PHP_FUNCTION()
5419 DATEG(timezone) = NULL; in PHP_FUNCTION()
5421 DATEG(timezone) = estrndup(zone, zone_len); in PHP_FUNCTION()