Lines Matching refs:BG

213 	BG(umask) = -1;  in basic_globals_ctor()
214 BG(user_tick_functions) = NULL; in basic_globals_ctor()
215 BG(user_filter_map) = NULL; in basic_globals_ctor()
216 BG(serialize_lock) = 0; in basic_globals_ctor()
218 memset(&BG(serialize), 0, sizeof(BG(serialize))); in basic_globals_ctor()
219 memset(&BG(unserialize), 0, sizeof(BG(unserialize))); in basic_globals_ctor()
221 memset(&BG(url_adapt_session_ex), 0, sizeof(BG(url_adapt_session_ex))); in basic_globals_ctor()
222 memset(&BG(url_adapt_output_ex), 0, sizeof(BG(url_adapt_output_ex))); in basic_globals_ctor()
224 BG(url_adapt_session_ex).type = 1; in basic_globals_ctor()
225 BG(url_adapt_output_ex).type = 0; in basic_globals_ctor()
227 zend_hash_init(&BG(url_adapt_session_hosts_ht), 0, NULL, NULL, 1); in basic_globals_ctor()
228 zend_hash_init(&BG(url_adapt_output_hosts_ht), 0, NULL, NULL, 1); in basic_globals_ctor()
231 memset(&BG(mblen_state), 0, sizeof(BG(mblen_state))); in basic_globals_ctor()
234 BG(page_uid) = -1; in basic_globals_ctor()
235 BG(page_gid) = -1; in basic_globals_ctor()
237 BG(syslog_device) = NULL; in basic_globals_ctor()
396 memset(BG(strtok_table), 0, 256); in PHP_RINIT_FUNCTION()
398 BG(serialize_lock) = 0; in PHP_RINIT_FUNCTION()
399 memset(&BG(serialize), 0, sizeof(BG(serialize))); in PHP_RINIT_FUNCTION()
400 memset(&BG(unserialize), 0, sizeof(BG(unserialize))); in PHP_RINIT_FUNCTION()
402 BG(strtok_string) = NULL; in PHP_RINIT_FUNCTION()
403 BG(strtok_last) = NULL; in PHP_RINIT_FUNCTION()
404 BG(ctype_string) = NULL; in PHP_RINIT_FUNCTION()
405 BG(locale_changed) = 0; in PHP_RINIT_FUNCTION()
406 BG(user_compare_fci) = empty_fcall_info; in PHP_RINIT_FUNCTION()
407 BG(user_compare_fci_cache) = empty_fcall_info_cache; in PHP_RINIT_FUNCTION()
408 BG(page_uid) = -1; in PHP_RINIT_FUNCTION()
409 BG(page_gid) = -1; in PHP_RINIT_FUNCTION()
410 BG(page_inode) = -1; in PHP_RINIT_FUNCTION()
411 BG(page_mtime) = -1; in PHP_RINIT_FUNCTION()
413 zend_hash_init(&BG(putenv_ht), 1, NULL, php_putenv_destructor, 0); in PHP_RINIT_FUNCTION()
415 BG(user_shutdown_function_names) = NULL; in PHP_RINIT_FUNCTION()
422 ZVAL_UNDEF(&BG(last_http_headers)); in PHP_RINIT_FUNCTION()
439 if (BG(strtok_string)) { in PHP_RSHUTDOWN_FUNCTION()
440 zend_string_release(BG(strtok_string)); in PHP_RSHUTDOWN_FUNCTION()
441 BG(strtok_string) = NULL; in PHP_RSHUTDOWN_FUNCTION()
445 zend_hash_destroy(&BG(putenv_ht)); in PHP_RSHUTDOWN_FUNCTION()
449 if (BG(umask) != -1) { in PHP_RSHUTDOWN_FUNCTION()
450 umask(BG(umask)); in PHP_RSHUTDOWN_FUNCTION()
455 if (BG(locale_changed)) { in PHP_RSHUTDOWN_FUNCTION()
459 if (BG(ctype_string)) { in PHP_RSHUTDOWN_FUNCTION()
460 zend_string_release_ex(BG(ctype_string), 0); in PHP_RSHUTDOWN_FUNCTION()
461 BG(ctype_string) = NULL; in PHP_RSHUTDOWN_FUNCTION()
479 if (BG(user_tick_functions)) { in PHP_RSHUTDOWN_FUNCTION()
480 zend_llist_destroy(BG(user_tick_functions)); in PHP_RSHUTDOWN_FUNCTION()
481 efree(BG(user_tick_functions)); in PHP_RSHUTDOWN_FUNCTION()
482 BG(user_tick_functions) = NULL; in PHP_RSHUTDOWN_FUNCTION()
489 zval_ptr_dtor(&BG(last_http_headers)); in PHP_RSHUTDOWN_FUNCTION()
491 BG(page_uid) = -1; in PHP_RSHUTDOWN_FUNCTION()
492 BG(page_gid) = -1; in PHP_RSHUTDOWN_FUNCTION()
769 zend_hash_del(&BG(putenv_ht), pe.key);
825 zend_hash_add_mem(&BG(putenv_ht), pe.key, &pe, sizeof(putenv_entry));
1636 zend_llist_apply(BG(user_tick_functions), (llist_apply_func_t) user_tick_function_call);
1666 if (BG(user_shutdown_function_names)) {
1668 zend_hash_apply(BG(user_shutdown_function_names), user_shutdown_function_call);
1676 if (BG(user_shutdown_function_names))
1678 zend_hash_destroy(BG(user_shutdown_function_names));
1679 FREE_HASHTABLE(BG(user_shutdown_function_names));
1680 BG(user_shutdown_function_names) = NULL;
1683 FREE_HASHTABLE(BG(user_shutdown_function_names));
1684 BG(user_shutdown_function_names) = NULL;
1711 if (!BG(user_shutdown_function_names)) {
1712 ALLOC_HASHTABLE(BG(user_shutdown_function_names));
1713 zend_hash_init(BG(user_shutdown_function_names), 0, NULL, user_shutdown_function_dtor, 0);
1716 …zend_hash_str_update_mem(BG(user_shutdown_function_names), function_name, function_len, shutdown_f…
1723 if (BG(user_shutdown_function_names)) {
1724 …return zend_hash_str_del(BG(user_shutdown_function_names), function_name, function_len) != FAILURE;
1733 if (!BG(user_shutdown_function_names)) {
1734 ALLOC_HASHTABLE(BG(user_shutdown_function_names));
1735 zend_hash_init(BG(user_shutdown_function_names), 0, NULL, user_shutdown_function_dtor, 0);
1738 …return zend_hash_next_index_insert_mem(BG(user_shutdown_function_names), shutdown_function_entry, …
2292 if (!BG(user_tick_functions)) {
2293 BG(user_tick_functions) = (zend_llist *) emalloc(sizeof(zend_llist));
2294 zend_llist_init(BG(user_tick_functions),
2300 zend_llist_add_element(BG(user_tick_functions), &tick_fe);
2315 if (!BG(user_tick_functions)) {
2319 …zend_llist_del_element(BG(user_tick_functions), &tick_fe, (int (*)(void *, void *)) user_tick_func…
2461 array_init(&BG(active_ini_file_section));
2462 zend_symtable_update(Z_ARRVAL_P(arr), Z_STR_P(arg1), &BG(active_ini_file_section));
2466 if (Z_TYPE(BG(active_ini_file_section)) != IS_UNDEF) {
2467 active_arr = &BG(active_ini_file_section);
2500 ZVAL_UNDEF(&BG(active_ini_file_section));
2540 ZVAL_UNDEF(&BG(active_ini_file_section));