Lines Matching refs:CG

60 # define GLOBAL_FUNCTION_TABLE		CG(function_table)
61 # define GLOBAL_CLASS_TABLE CG(class_table)
62 # define GLOBAL_AUTO_GLOBALS_TABLE CG(auto_globals)
136 if (!CG(multibyte)) { in ZEND_INI_MH()
584 CG(short_tags) = short_tags_default; in zend_set_default_compile_time_values()
585 CG(compiler_options) = compiler_options_default; in zend_set_default_compile_time_values()
587 CG(rtd_key_counter) = 0; in zend_set_default_compile_time_values()
1002 CG(map_ptr_size) = 1024 * 1024; // TODO: initial size ??? in zend_startup()
1003 CG(map_ptr_last) = 0; in zend_startup()
1004 CG(map_ptr_real_base) = pemalloc(CG(map_ptr_size) * sizeof(void*), 1); in zend_startup()
1005 CG(map_ptr_base) = ZEND_MAP_PTR_BIASED_BASE(CG(map_ptr_real_base)); in zend_startup()
1008 CG(map_ptr_real_base) = NULL; in zend_startup()
1009 CG(map_ptr_base) = ZEND_MAP_PTR_BIASED_BASE(NULL); in zend_startup()
1010 CG(map_ptr_size) = 0; in zend_startup()
1011 CG(map_ptr_last) = 0; in zend_startup()
1081 short_tags_default = CG(short_tags); in zend_post_startup()
1082 compiler_options_default = CG(compiler_options); in zend_post_startup()
1107 global_map_ptr_last = CG(map_ptr_last); in zend_post_startup()
1150 if (CG(map_ptr_real_base)) { in zend_shutdown()
1151 free(CG(map_ptr_real_base)); in zend_shutdown()
1152 CG(map_ptr_real_base) = NULL; in zend_shutdown()
1153 CG(map_ptr_base) = ZEND_MAP_PTR_BIASED_BASE(NULL); in zend_shutdown()
1154 CG(map_ptr_size) = 0; in zend_shutdown()
1156 if (CG(script_encoding_list)) { in zend_shutdown()
1157 free(ZEND_VOIDP(CG(script_encoding_list))); in zend_shutdown()
1158 CG(script_encoding_list) = NULL; in zend_shutdown()
1159 CG(script_encoding_list_size) = 0; in zend_shutdown()
1178 CG(parse_error) = 0; in zenderror()
1197 CG(unclean_shutdown) = 1; in _zend_bailout()
1198 CG(active_class_entry) = NULL; in _zend_bailout()
1199 CG(in_compilation) = 0; in _zend_bailout()
1200 CG(memoize_mode) = 0; in _zend_bailout()
1258 if (CG(map_ptr_last)) { in zend_activate()
1259 memset(CG(map_ptr_real_base), 0, CG(map_ptr_last) * sizeof(void*)); in zend_activate()
1319 if (zend_hash_num_elements(&CG(interned_strings)) > 0) { in zend_deactivate()
1357 if (CG(stack).top) { \
1358 memcpy(&stack, &CG(stack), sizeof(zend_stack)); \
1359 CG(stack).top = CG(stack).max = 0; \
1360 CG(stack).elements = NULL; \
1368 zend_stack_destroy(&CG(stack)); \
1369 memcpy(&CG(stack), &stack, sizeof(zend_stack)); \
1472 in_compilation = CG(in_compilation); in zend_error_zstr_at()
1474 saved_class_entry = CG(active_class_entry); in zend_error_zstr_at()
1475 CG(active_class_entry) = NULL; in zend_error_zstr_at()
1478 CG(in_compilation) = 0; in zend_error_zstr_at()
1488 res = call_user_function(CG(function_table), NULL, &orig_user_error_handler, &retval, 4, params); in zend_error_zstr_at()
1507 CG(active_class_entry) = saved_class_entry; in zend_error_zstr_at()
1510 CG(in_compilation) = 1; in zend_error_zstr_at()
1732 if (EG(current_execute_data) && !CG(in_compilation)) { in zend_throw_error()
1821 …if (call_user_function(CG(function_table), NULL, &orig_user_exception_handler, &retval2, 1, params… in zend_user_exception_handler()
1912 CG(map_ptr_last) = global_map_ptr_last; in zend_map_ptr_reset()
1919 if (CG(map_ptr_last) >= CG(map_ptr_size)) { in zend_map_ptr_new()
1925 CG(map_ptr_size) = ZEND_MM_ALIGNED_SIZE_EX(CG(map_ptr_last) + 1, 4096); in zend_map_ptr_new()
1926 CG(map_ptr_real_base) = perealloc(CG(map_ptr_real_base), CG(map_ptr_size) * sizeof(void*), 1); in zend_map_ptr_new()
1927 CG(map_ptr_base) = ZEND_MAP_PTR_BIASED_BASE(CG(map_ptr_real_base)); in zend_map_ptr_new()
1932 ptr = (void**)CG(map_ptr_real_base) + CG(map_ptr_last); in zend_map_ptr_new()
1934 CG(map_ptr_last)++; in zend_map_ptr_new()
1946 if (last > CG(map_ptr_last)) { in zend_map_ptr_extend()
1949 if (last >= CG(map_ptr_size)) { in zend_map_ptr_extend()
1955 CG(map_ptr_size) = ZEND_MM_ALIGNED_SIZE_EX(last, 4096); in zend_map_ptr_extend()
1956 CG(map_ptr_real_base) = perealloc(CG(map_ptr_real_base), CG(map_ptr_size) * sizeof(void*), 1); in zend_map_ptr_extend()
1957 CG(map_ptr_base) = ZEND_MAP_PTR_BIASED_BASE(CG(map_ptr_real_base)); in zend_map_ptr_extend()
1962 ptr = (void**)CG(map_ptr_real_base) + CG(map_ptr_last); in zend_map_ptr_extend()
1963 memset(ptr, 0, (last - CG(map_ptr_last)) * sizeof(void*)); in zend_map_ptr_extend()
1964 CG(map_ptr_last) = last; in zend_map_ptr_extend()