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()
409 memset(BG(strtok_table), 0, 256); in PHP_RINIT_FUNCTION()
411 BG(serialize_lock) = 0; in PHP_RINIT_FUNCTION()
412 memset(&BG(serialize), 0, sizeof(BG(serialize))); in PHP_RINIT_FUNCTION()
413 memset(&BG(unserialize), 0, sizeof(BG(unserialize))); in PHP_RINIT_FUNCTION()
415 BG(strtok_string) = NULL; in PHP_RINIT_FUNCTION()
416 BG(strtok_last) = NULL; in PHP_RINIT_FUNCTION()
417 BG(ctype_string) = NULL; in PHP_RINIT_FUNCTION()
418 BG(locale_changed) = 0; in PHP_RINIT_FUNCTION()
419 BG(user_compare_fci) = empty_fcall_info; in PHP_RINIT_FUNCTION()
420 BG(user_compare_fci_cache) = empty_fcall_info_cache; in PHP_RINIT_FUNCTION()
421 BG(page_uid) = -1; in PHP_RINIT_FUNCTION()
422 BG(page_gid) = -1; in PHP_RINIT_FUNCTION()
423 BG(page_inode) = -1; in PHP_RINIT_FUNCTION()
424 BG(page_mtime) = -1; in PHP_RINIT_FUNCTION()
426 zend_hash_init(&BG(putenv_ht), 1, NULL, php_putenv_destructor, 0); in PHP_RINIT_FUNCTION()
428 BG(user_shutdown_function_names) = NULL; in PHP_RINIT_FUNCTION()
449 if (BG(strtok_string)) { in PHP_RSHUTDOWN_FUNCTION()
450 zend_string_release(BG(strtok_string)); in PHP_RSHUTDOWN_FUNCTION()
451 BG(strtok_string) = NULL; in PHP_RSHUTDOWN_FUNCTION()
455 zend_hash_destroy(&BG(putenv_ht)); in PHP_RSHUTDOWN_FUNCTION()
459 if (BG(umask) != -1) { in PHP_RSHUTDOWN_FUNCTION()
460 umask(BG(umask)); in PHP_RSHUTDOWN_FUNCTION()
465 if (BG(locale_changed)) { in PHP_RSHUTDOWN_FUNCTION()
469 if (BG(ctype_string)) { in PHP_RSHUTDOWN_FUNCTION()
470 zend_string_release_ex(BG(ctype_string), 0); in PHP_RSHUTDOWN_FUNCTION()
471 BG(ctype_string) = NULL; in PHP_RSHUTDOWN_FUNCTION()
489 if (BG(user_tick_functions)) { in PHP_RSHUTDOWN_FUNCTION()
490 zend_llist_destroy(BG(user_tick_functions)); in PHP_RSHUTDOWN_FUNCTION()
491 efree(BG(user_tick_functions)); in PHP_RSHUTDOWN_FUNCTION()
492 BG(user_tick_functions) = NULL; in PHP_RSHUTDOWN_FUNCTION()
498 BG(page_uid) = -1; in PHP_RSHUTDOWN_FUNCTION()
499 BG(page_gid) = -1; in PHP_RSHUTDOWN_FUNCTION()
806 zend_hash_del(&BG(putenv_ht), pe.key);
862 zend_hash_add_mem(&BG(putenv_ht), pe.key, &pe, sizeof(putenv_entry));
1679 zend_llist_apply(BG(user_tick_functions), (llist_apply_func_t) user_tick_function_call);
1709 if (BG(user_shutdown_function_names)) {
1711 zend_hash_apply(BG(user_shutdown_function_names), user_shutdown_function_call);
1719 if (BG(user_shutdown_function_names))
1721 zend_hash_destroy(BG(user_shutdown_function_names));
1722 FREE_HASHTABLE(BG(user_shutdown_function_names));
1723 BG(user_shutdown_function_names) = NULL;
1726 FREE_HASHTABLE(BG(user_shutdown_function_names));
1727 BG(user_shutdown_function_names) = NULL;
1754 if (!BG(user_shutdown_function_names)) {
1755 ALLOC_HASHTABLE(BG(user_shutdown_function_names));
1756 zend_hash_init(BG(user_shutdown_function_names), 0, NULL, user_shutdown_function_dtor, 0);
1759 …zend_hash_str_update_mem(BG(user_shutdown_function_names), function_name, function_len, shutdown_f…
1766 if (BG(user_shutdown_function_names)) {
1767 …return zend_hash_str_del(BG(user_shutdown_function_names), function_name, function_len) != FAILURE;
1776 if (!BG(user_shutdown_function_names)) {
1777 ALLOC_HASHTABLE(BG(user_shutdown_function_names));
1778 zend_hash_init(BG(user_shutdown_function_names), 0, NULL, user_shutdown_function_dtor, 0);
1781 …return zend_hash_next_index_insert_mem(BG(user_shutdown_function_names), shutdown_function_entry, …
2339 if (!BG(user_tick_functions)) {
2340 BG(user_tick_functions) = (zend_llist *) emalloc(sizeof(zend_llist));
2341 zend_llist_init(BG(user_tick_functions),
2347 zend_llist_add_element(BG(user_tick_functions), &tick_fe);
2362 if (!BG(user_tick_functions)) {
2366 …zend_llist_del_element(BG(user_tick_functions), &tick_fe, (int (*)(void *, void *)) user_tick_func…
2508 array_init(&BG(active_ini_file_section));
2509 zend_symtable_update(Z_ARRVAL_P(arr), Z_STR_P(arg1), &BG(active_ini_file_section));
2513 if (Z_TYPE(BG(active_ini_file_section)) != IS_UNDEF) {
2514 active_arr = &BG(active_ini_file_section);
2547 ZVAL_UNDEF(&BG(active_ini_file_section));
2587 ZVAL_UNDEF(&BG(active_ini_file_section));