Lines Matching refs:BG

3374 	zend_hash_clean(&BG(sm_protected_env_vars));  in PHP_INI_MH()
3378 …zend_hash_update(&BG(sm_protected_env_vars), protected_var, strlen(protected_var), &dummy, sizeof(… in PHP_INI_MH()
3388 if (BG(sm_allowed_env_vars)) { in PHP_INI_MH()
3389 free(BG(sm_allowed_env_vars)); in PHP_INI_MH()
3391 BG(sm_allowed_env_vars) = zend_strndup(new_value, new_value_length); in PHP_INI_MH()
3471 BG(rand_is_seeded) = 0; in basic_globals_ctor()
3472 BG(mt_rand_is_seeded) = 0; in basic_globals_ctor()
3473 BG(umask) = -1; in basic_globals_ctor()
3474 BG(next) = NULL; in basic_globals_ctor()
3475 BG(left) = -1; in basic_globals_ctor()
3476 BG(user_tick_functions) = NULL; in basic_globals_ctor()
3477 BG(user_filter_map) = NULL; in basic_globals_ctor()
3478 zend_hash_init(&BG(sm_protected_env_vars), 5, NULL, NULL, 1); in basic_globals_ctor()
3479 BG(sm_allowed_env_vars) = NULL; in basic_globals_ctor()
3481 memset(&BG(url_adapt_state_ex), 0, sizeof(BG(url_adapt_state_ex))); in basic_globals_ctor()
3484 memset(&BG(mblen_state), 0, sizeof(BG(mblen_state))); in basic_globals_ctor()
3487 BG(incomplete_class) = incomplete_class_entry; in basic_globals_ctor()
3488 BG(page_uid) = -1; in basic_globals_ctor()
3489 BG(page_gid) = -1; in basic_globals_ctor()
3495 zend_hash_destroy(&BG(sm_protected_env_vars)); in basic_globals_dtor()
3496 if (BG(sm_allowed_env_vars)) { in basic_globals_dtor()
3497 free(BG(sm_allowed_env_vars)); in basic_globals_dtor()
3499 if (BG(url_adapt_state_ex).tags) { in basic_globals_dtor()
3500 zend_hash_destroy(BG(url_adapt_state_ex).tags); in basic_globals_dtor()
3501 free(BG(url_adapt_state_ex).tags); in basic_globals_dtor()
3557 BG(incomplete_class) = incomplete_class_entry = php_create_incomplete_class(TSRMLS_C); in PHP_MINIT_FUNCTION()
3715 memset(BG(strtok_table), 0, 256); in PHP_RINIT_FUNCTION()
3716 BG(strtok_string) = NULL; in PHP_RINIT_FUNCTION()
3717 BG(strtok_zval) = NULL; in PHP_RINIT_FUNCTION()
3718 BG(strtok_last) = NULL; in PHP_RINIT_FUNCTION()
3719 BG(locale_string) = NULL; in PHP_RINIT_FUNCTION()
3720 BG(array_walk_fci) = empty_fcall_info; in PHP_RINIT_FUNCTION()
3721 BG(array_walk_fci_cache) = empty_fcall_info_cache; in PHP_RINIT_FUNCTION()
3722 BG(user_compare_fci) = empty_fcall_info; in PHP_RINIT_FUNCTION()
3723 BG(user_compare_fci_cache) = empty_fcall_info_cache; in PHP_RINIT_FUNCTION()
3724 BG(page_uid) = -1; in PHP_RINIT_FUNCTION()
3725 BG(page_gid) = -1; in PHP_RINIT_FUNCTION()
3726 BG(page_inode) = -1; in PHP_RINIT_FUNCTION()
3727 BG(page_mtime) = -1; in PHP_RINIT_FUNCTION()
3729 …if (zend_hash_init(&BG(putenv_ht), 1, NULL, (void (*)(void *)) php_putenv_destructor, 0) == FAILUR… in PHP_RINIT_FUNCTION()
3733 BG(user_shutdown_function_names) = NULL; in PHP_RINIT_FUNCTION()
3762 if (BG(strtok_zval)) { in PHP_RSHUTDOWN_FUNCTION()
3763 zval_ptr_dtor(&BG(strtok_zval)); in PHP_RSHUTDOWN_FUNCTION()
3765 BG(strtok_string) = NULL; in PHP_RSHUTDOWN_FUNCTION()
3766 BG(strtok_zval) = NULL; in PHP_RSHUTDOWN_FUNCTION()
3768 zend_hash_destroy(&BG(putenv_ht)); in PHP_RSHUTDOWN_FUNCTION()
3771 if (BG(umask) != -1) { in PHP_RSHUTDOWN_FUNCTION()
3772 umask(BG(umask)); in PHP_RSHUTDOWN_FUNCTION()
3777 if (BG(locale_string) != NULL) { in PHP_RSHUTDOWN_FUNCTION()
3782 STR_FREE(BG(locale_string)); in PHP_RSHUTDOWN_FUNCTION()
3783 BG(locale_string) = NULL; in PHP_RSHUTDOWN_FUNCTION()
3801 if (BG(user_tick_functions)) { in PHP_RSHUTDOWN_FUNCTION()
3802 zend_llist_destroy(BG(user_tick_functions)); in PHP_RSHUTDOWN_FUNCTION()
3803 efree(BG(user_tick_functions)); in PHP_RSHUTDOWN_FUNCTION()
3804 BG(user_tick_functions) = NULL; in PHP_RSHUTDOWN_FUNCTION()
3810 BG(page_uid) = -1; in PHP_RSHUTDOWN_FUNCTION()
3811 BG(page_gid) = -1; in PHP_RSHUTDOWN_FUNCTION()
4093 if (zend_hash_exists(&BG(sm_protected_env_vars), pe.key, pe.key_len)) {
4101 if (BG(sm_allowed_env_vars) && *BG(sm_allowed_env_vars)) {
4102 char *allowed_env_vars = estrdup(BG(sm_allowed_env_vars));
4124 zend_hash_del(&BG(putenv_ht), pe.key, pe.key_len+1);
4159 zend_hash_add(&BG(putenv_ht), pe.key, pe.key_len + 1, (void **) &pe, sizeof(putenv_entry), NULL);
5058 zend_llist_apply(BG(user_tick_functions), (llist_apply_func_t) user_tick_function_call TSRMLS_CC);
5093 if (BG(user_shutdown_function_names)) {
5095 …zend_hash_apply(BG(user_shutdown_function_names), (apply_func_t) user_shutdown_function_call TSRML…
5105 if (BG(user_shutdown_function_names))
5107 zend_hash_destroy(BG(user_shutdown_function_names));
5108 FREE_HASHTABLE(BG(user_shutdown_function_names));
5109 BG(user_shutdown_function_names) = NULL;
5112 FREE_HASHTABLE(BG(user_shutdown_function_names));
5113 BG(user_shutdown_function_names) = NULL;
5145 if (!BG(user_shutdown_function_names)) {
5146 ALLOC_HASHTABLE(BG(user_shutdown_function_names));
5147 …zend_hash_init(BG(user_shutdown_function_names), 0, NULL, (void (*)(void *)) user_shutdown_functio…
5153 …zend_hash_next_index_insert(BG(user_shutdown_function_names), &shutdown_function_entry, sizeof(php…
5761 if (!BG(user_tick_functions)) {
5762 BG(user_tick_functions) = (zend_llist *) emalloc(sizeof(zend_llist));
5763 zend_llist_init(BG(user_tick_functions),
5773 zend_llist_add_element(BG(user_tick_functions), &tick_fe);
5790 if (!BG(user_tick_functions)) {
5801 …zend_llist_del_element(BG(user_tick_functions), &tick_fe, (int (*)(void *, void *)) user_tick_func…
5978 MAKE_STD_ZVAL(BG(active_ini_file_section));
5979 array_init(BG(active_ini_file_section));
5980 …zend_symtable_update(Z_ARRVAL_P(arr), Z_STRVAL_P(arg1), Z_STRLEN_P(arg1) + 1, &BG(active_ini_file_…
5984 if (BG(active_ini_file_section)) {
5985 active_arr = BG(active_ini_file_section);
6021 BG(active_ini_file_section) = NULL;
6061 BG(active_ini_file_section) = NULL;