Lines Matching refs:CG

54 # define GLOBAL_FUNCTION_TABLE		CG(function_table)
55 # define GLOBAL_CLASS_TABLE CG(class_table)
56 # define GLOBAL_AUTO_GLOBALS_TABLE CG(auto_globals)
130 if (!CG(multibyte)) { in ZEND_INI_MH()
532 CG(short_tags) = short_tags_default; in zend_set_default_compile_time_values()
533 CG(compiler_options) = compiler_options_default; in zend_set_default_compile_time_values()
535 CG(rtd_key_counter) = 0; in zend_set_default_compile_time_values()
913 CG(map_ptr_size) = 1024 * 1024; // TODO: initial size ??? in zend_startup()
914 CG(map_ptr_last) = 0; in zend_startup()
915 CG(map_ptr_base) = pemalloc(CG(map_ptr_size) * sizeof(void*), 1); in zend_startup()
918 CG(map_ptr_base) = NULL; in zend_startup()
919 CG(map_ptr_size) = 0; in zend_startup()
920 CG(map_ptr_last) = 0; in zend_startup()
967 ZEND_HASH_FOREACH_PTR(CG(class_table), ce) { in zend_resolve_property_types()
977 zend_class_entry *prop_ce = zend_hash_find_ptr(CG(class_table), lc_type_name); in zend_resolve_property_types()
1020 short_tags_default = CG(short_tags); in zend_post_startup()
1021 compiler_options_default = CG(compiler_options); in zend_post_startup()
1043 global_map_ptr_last = CG(map_ptr_last); in zend_post_startup()
1084 if (CG(map_ptr_base)) { in zend_shutdown()
1085 free(CG(map_ptr_base)); in zend_shutdown()
1086 CG(map_ptr_base) = NULL; in zend_shutdown()
1087 CG(map_ptr_size) = 0; in zend_shutdown()
1089 if (CG(script_encoding_list)) { in zend_shutdown()
1090 free(CG(script_encoding_list)); in zend_shutdown()
1091 CG(script_encoding_list) = NULL; in zend_shutdown()
1092 CG(script_encoding_list_size) = 0; in zend_shutdown()
1108 CG(parse_error) = 0; in zenderror()
1128 CG(unclean_shutdown) = 1; in BEGIN_EXTERN_C()
1129 CG(active_class_entry) = NULL; in BEGIN_EXTERN_C()
1130 CG(in_compilation) = 0; in BEGIN_EXTERN_C()
1174 if (CG(map_ptr_last)) { in zend_activate()
1175 memset(CG(map_ptr_base), 0, CG(map_ptr_last) * sizeof(void*)); in zend_activate()
1246 if (CG(stack).top) { \
1247 memcpy(&stack, &CG(stack), sizeof(zend_stack)); \
1248 CG(stack).top = CG(stack).max = 0; \
1249 CG(stack).elements = NULL; \
1257 zend_stack_destroy(&CG(stack)); \
1258 memcpy(&CG(stack), &stack, sizeof(zend_stack)); \
1368 in_compilation = CG(in_compilation); in zend_error_va_list()
1370 saved_class_entry = CG(active_class_entry); in zend_error_va_list()
1371 CG(active_class_entry) = NULL; in zend_error_va_list()
1374 CG(in_compilation) = 0; in zend_error_va_list()
1380 …if (call_user_function(CG(function_table), NULL, &orig_user_error_handler, &retval, 5, params) == … in zend_error_va_list()
1395 CG(active_class_entry) = saved_class_entry; in zend_error_va_list()
1398 CG(in_compilation) = 1; in zend_error_va_list()
1554 if (EG(current_execute_data) && !CG(in_compilation)) { in zend_throw_error()
1647 …if (call_user_function(CG(function_table), NULL, &orig_user_exception_handler, &retval2, 1, params… in zend_user_exception_handler()
1734 CG(map_ptr_last) = global_map_ptr_last; in zend_map_ptr_reset()
1741 if (CG(map_ptr_last) >= CG(map_ptr_size)) { in zend_map_ptr_new()
1747 CG(map_ptr_size) = ZEND_MM_ALIGNED_SIZE_EX(CG(map_ptr_last) + 1, 4096); in zend_map_ptr_new()
1748 CG(map_ptr_base) = perealloc(CG(map_ptr_base), CG(map_ptr_size) * sizeof(void*), 1); in zend_map_ptr_new()
1753 ptr = (void**)CG(map_ptr_base) + CG(map_ptr_last); in zend_map_ptr_new()
1755 CG(map_ptr_last)++; in zend_map_ptr_new()
1767 if (last > CG(map_ptr_last)) { in zend_map_ptr_extend()
1770 if (last >= CG(map_ptr_size)) { in zend_map_ptr_extend()
1776 CG(map_ptr_size) = ZEND_MM_ALIGNED_SIZE_EX(last, 4096); in zend_map_ptr_extend()
1777 CG(map_ptr_base) = perealloc(CG(map_ptr_base), CG(map_ptr_size) * sizeof(void*), 1); in zend_map_ptr_extend()
1782 ptr = (void**)CG(map_ptr_base) + CG(map_ptr_last); in zend_map_ptr_extend()
1783 memset(ptr, 0, (last - CG(map_ptr_last)) * sizeof(void*)); in zend_map_ptr_extend()
1784 CG(map_ptr_last) = last; in zend_map_ptr_extend()