CG 40 Zend/zend.c # define GLOBAL_FUNCTION_TABLE CG(function_table) CG 41 Zend/zend.c # define GLOBAL_CLASS_TABLE CG(class_table) CG 42 Zend/zend.c # define GLOBAL_AUTO_GLOBALS_TABLE CG(auto_globals) CG 90 Zend/zend.c if (!CG(multibyte)) { CG 475 Zend/zend.c CG(asp_tags) = asp_tags_default; CG 476 Zend/zend.c CG(short_tags) = short_tags_default; CG 477 Zend/zend.c CG(compiler_options) = compiler_options_default; CG 520 Zend/zend.c CG(interactive) = 0; CG 787 Zend/zend.c asp_tags_default = CG(asp_tags); CG 788 Zend/zend.c short_tags_default = CG(short_tags); CG 789 Zend/zend.c compiler_options_default = CG(compiler_options); CG 881 Zend/zend.c CG(unclean_shutdown) = 1; CG 882 Zend/zend.c CG(active_class_entry) = NULL; CG 883 Zend/zend.c CG(in_compilation) = EG(in_execution) = 0; CG 955 Zend/zend.c if (GC_G(gc_enabled) && !CG(unclean_shutdown)) { CG 1001 Zend/zend.c if (CG(stack).top) { \ CG 1002 Zend/zend.c memcpy(&stack, &CG(stack), sizeof(zend_stack)); \ CG 1003 Zend/zend.c CG(stack).top = CG(stack).max = 0; \ CG 1004 Zend/zend.c CG(stack).elements = NULL; \ CG 1012 Zend/zend.c zend_stack_destroy(&CG(stack)); \ CG 1013 Zend/zend.c memcpy(&CG(stack), &stack, sizeof(zend_stack)); \ CG 1194 Zend/zend.c in_compilation = CG(in_compilation); CG 1196 Zend/zend.c saved_class_entry = CG(active_class_entry); CG 1197 Zend/zend.c CG(active_class_entry) = NULL; CG 1206 Zend/zend.c CG(in_compilation) = 0; CG 1209 Zend/zend.c if (call_user_function_ex(CG(function_table), NULL, orig_user_error_handler, &retval, 5, params, 1, NULL TSRMLS_CC) == SUCCESS) { CG 1222 Zend/zend.c CG(active_class_entry) = saved_class_entry; CG 1231 Zend/zend.c CG(in_compilation) = 1; CG 1302 Zend/zend.c long orig_interactive = CG(interactive); CG 1313 Zend/zend.c CG(interactive) = 0; CG 1315 Zend/zend.c CG(interactive) = 1; CG 1337 Zend/zend.c if (call_user_function_ex(CG(function_table), NULL, orig_user_exception_handler, &retval2, 1, params, 1, NULL TSRMLS_CC) == SUCCESS) { CG 1360 Zend/zend.c CG(interactive) = orig_interactive; CG 1367 Zend/zend.c CG(interactive) = orig_interactive; CG 1058 Zend/zend_API.c zend_class_entry **scope = EG(in_execution)?&EG(scope):&CG(active_class_entry); CG 1092 Zend/zend_API.c zend_class_entry **scope = EG(in_execution)?&EG(scope):&CG(active_class_entry); CG 1112 Zend/zend_API.c CG(static_members_table)[(zend_intptr_t)(class_type->static_members_table)] = emalloc(sizeof(zval*) * class_type->default_static_members_count); CG 1856 Zend/zend_API.c for (zend_hash_internal_pointer_reset_ex(CG(class_table), &pos); CG 1857 Zend/zend_API.c zend_hash_get_current_data_ex(CG(class_table), (void *) &pce, &pos) == SUCCESS; CG 1858 Zend/zend_API.c zend_hash_move_forward_ex(CG(class_table), &pos)) { CG 1871 Zend/zend_API.c for (zend_hash_internal_pointer_reset_ex(CG(class_table), &pos); CG 1872 Zend/zend_API.c zend_hash_get_current_data_ex(CG(class_table), (void *) &pce, &pos) == SUCCESS; CG 1873 Zend/zend_API.c zend_hash_move_forward_ex(CG(class_table), &pos)) { CG 2048 Zend/zend_API.c target_function_table = CG(function_table); CG 2295 Zend/zend_API.c target_function_table = CG(function_table); CG 2510 Zend/zend_API.c zend_hash_quick_update(CG(class_table), lowercase_name, class_entry->name_length+1, INTERNED_HASH(lowercase_name), &class_entry, sizeof(zend_class_entry *), NULL); CG 2512 Zend/zend_API.c zend_hash_update(CG(class_table), lowercase_name, class_entry->name_length+1, &class_entry, sizeof(zend_class_entry *), NULL); CG 2530 Zend/zend_API.c if (zend_hash_find(CG(class_table), parent_name, strlen(parent_name)+1, (void **) &pce)==FAILURE) { CG 2581 Zend/zend_API.c ret = zend_hash_add(CG(class_table), lcname+1, name_len, &ce, sizeof(zend_class_entry *), NULL); CG 2583 Zend/zend_API.c ret = zend_hash_add(CG(class_table), lcname, name_len+1, &ce, sizeof(zend_class_entry *), NULL); CG 2631 Zend/zend_API.c if (zend_hash_del(CG(function_table), function_name, function_name_length+1)==FAILURE) { CG 2635 Zend/zend_API.c return zend_register_functions(NULL, disabled_function, CG(function_table), MODULE_PERSISTENT TSRMLS_CC); CG 2664 Zend/zend_API.c if (zend_hash_find(CG(class_table), class_name, class_name_length+1, (void **)&disabled_class)==FAILURE) { CG 226 Zend/zend_API.h # define CE_STATIC_MEMBERS(ce) (((ce)->type==ZEND_USER_CLASS)?(ce)->static_members_table:CG(static_members_table)[(zend_intptr_t)(ce)->static_members_table]) CG 2459 Zend/zend_builtin_functions.c zend_hash_internal_pointer_reset_ex(CG(function_table), &iterator); CG 2467 Zend/zend_builtin_functions.c while (zend_hash_get_current_data_ex(CG(function_table), (void **) &zif, &iterator) == SUCCESS) { CG 2476 Zend/zend_builtin_functions.c zend_hash_move_forward_ex(CG(function_table), &iterator); CG 59 Zend/zend_closures.c } else if (call_user_function_ex(CG(function_table), NULL, this_ptr, &closure_result_ptr, ZEND_NUM_ARGS(), arguments, 1, NULL TSRMLS_CC) == FAILURE) { CG 37 Zend/zend_compile.c CONSTANT_EX(CG(active_op_array), op) CG 42 Zend/zend_compile.c target.constant = zend_add_literal(CG(active_op_array), &(src)->u.constant TSRMLS_CC); \ CG 72 Zend/zend_compile.c CG(active_op_array)->literals[literal].cache_slot = CG(active_op_array)->last_cache_slot++; \ CG 73 Zend/zend_compile.c if ((CG(active_op_array)->fn_flags & ZEND_ACC_INTERACTIVE) && CG(active_op_array)->run_time_cache) { \ CG 74 Zend/zend_compile.c CG(active_op_array)->run_time_cache = erealloc(CG(active_op_array)->run_time_cache, CG(active_op_array)->last_cache_slot * sizeof(void*)); \ CG 75 Zend/zend_compile.c CG(active_op_array)->run_time_cache[CG(active_op_array)->last_cache_slot - 1] = NULL; \ CG 82 Zend/zend_compile.c CG(active_op_array)->literals[literal].cache_slot = CG(active_op_array)->last_cache_slot; \ CG 83 Zend/zend_compile.c CG(active_op_array)->last_cache_slot += POLYMORPHIC_CACHE_SLOT_SIZE; \ CG 84 Zend/zend_compile.c if ((CG(active_op_array)->fn_flags & ZEND_ACC_INTERACTIVE) && CG(active_op_array)->run_time_cache) { \ CG 85 Zend/zend_compile.c CG(active_op_array)->run_time_cache = erealloc(CG(active_op_array)->run_time_cache, CG(active_op_array)->last_cache_slot * sizeof(void*)); \ CG 86 Zend/zend_compile.c CG(active_op_array)->run_time_cache[CG(active_op_array)->last_cache_slot - 1] = NULL; \ CG 87 Zend/zend_compile.c CG(active_op_array)->run_time_cache[CG(active_op_array)->last_cache_slot - 2] = NULL; \ CG 92 Zend/zend_compile.c if (CG(active_op_array)->literals[literal].cache_slot != -1 && \ CG 93 Zend/zend_compile.c CG(active_op_array)->literals[literal].cache_slot == \ CG 94 Zend/zend_compile.c CG(active_op_array)->last_cache_slot - POLYMORPHIC_CACHE_SLOT_SIZE) { \ CG 95 Zend/zend_compile.c CG(active_op_array)->literals[literal].cache_slot = -1; \ CG 96 Zend/zend_compile.c CG(active_op_array)->last_cache_slot -= POLYMORPHIC_CACHE_SLOT_SIZE; \ CG 149 Zend/zend_compile.c if (CG(active_op_array)->filename) { CG 150 Zend/zend_compile.c filename = CG(active_op_array)->filename; CG 170 Zend/zend_compile.c Z_TYPE(CG(declarables).ticks) = IS_LONG; CG 171 Zend/zend_compile.c Z_LVAL(CG(declarables).ticks) = 0; CG 177 Zend/zend_compile.c CG(context).opcodes_size = (CG(active_op_array)->fn_flags & ZEND_ACC_INTERACTIVE) ? INITIAL_INTERACTIVE_OP_ARRAY_SIZE : INITIAL_OP_ARRAY_SIZE; CG 178 Zend/zend_compile.c CG(context).vars_size = 0; CG 179 Zend/zend_compile.c CG(context).literals_size = 0; CG 180 Zend/zend_compile.c CG(context).current_brk_cont = -1; CG 181 Zend/zend_compile.c CG(context).backpatch_count = 0; CG 182 Zend/zend_compile.c CG(context).nested_calls = 0; CG 183 Zend/zend_compile.c CG(context).used_stack = 0; CG 184 Zend/zend_compile.c CG(context).in_finally = 0; CG 185 Zend/zend_compile.c CG(context).labels = NULL; CG 191 Zend/zend_compile.c zend_stack_init(&CG(bp_stack)); CG 192 Zend/zend_compile.c zend_stack_init(&CG(function_call_stack)); CG 193 Zend/zend_compile.c zend_stack_init(&CG(switch_cond_stack)); CG 194 Zend/zend_compile.c zend_stack_init(&CG(foreach_copy_stack)); CG 195 Zend/zend_compile.c zend_stack_init(&CG(object_stack)); CG 196 Zend/zend_compile.c zend_stack_init(&CG(declare_stack)); CG 197 Zend/zend_compile.c CG(active_class_entry) = NULL; CG 198 Zend/zend_compile.c zend_llist_init(&CG(list_llist), sizeof(list_llist_element), NULL, 0); CG 199 Zend/zend_compile.c zend_llist_init(&CG(dimension_llist), sizeof(int), NULL, 0); CG 200 Zend/zend_compile.c zend_stack_init(&CG(list_stack)); CG 201 Zend/zend_compile.c CG(in_compilation) = 0; CG 202 Zend/zend_compile.c CG(start_lineno) = 0; CG 203 Zend/zend_compile.c CG(current_namespace) = NULL; CG 204 Zend/zend_compile.c CG(in_namespace) = 0; CG 205 Zend/zend_compile.c CG(has_bracketed_namespaces) = 0; CG 206 Zend/zend_compile.c CG(current_import) = NULL; CG 208 Zend/zend_compile.c zend_stack_init(&CG(context_stack)); CG 210 Zend/zend_compile.c CG(encoding_declared) = 0; CG 224 Zend/zend_compile.c CG(active_op_array) = NULL; CG 225 Zend/zend_compile.c memset(&CG(context), 0, sizeof(CG(context))); CG 228 Zend/zend_compile.c zend_hash_init(&CG(filenames_table), 5, NULL, (dtor_func_t) free_estring, 0); CG 229 Zend/zend_compile.c zend_llist_init(&CG(open_files), sizeof(zend_file_handle), (void (*)(void *)) file_handle_dtor, 0); CG 230 Zend/zend_compile.c CG(unclean_shutdown) = 0; CG 236 Zend/zend_compile.c zend_stack_destroy(&CG(bp_stack)); CG 237 Zend/zend_compile.c zend_stack_destroy(&CG(function_call_stack)); CG 238 Zend/zend_compile.c zend_stack_destroy(&CG(switch_cond_stack)); CG 239 Zend/zend_compile.c zend_stack_destroy(&CG(foreach_copy_stack)); CG 240 Zend/zend_compile.c zend_stack_destroy(&CG(object_stack)); CG 241 Zend/zend_compile.c zend_stack_destroy(&CG(declare_stack)); CG 242 Zend/zend_compile.c zend_stack_destroy(&CG(list_stack)); CG 243 Zend/zend_compile.c zend_hash_destroy(&CG(filenames_table)); CG 244 Zend/zend_compile.c zend_llist_destroy(&CG(open_files)); CG 245 Zend/zend_compile.c zend_stack_destroy(&CG(context_stack)); CG 254 Zend/zend_compile.c if (zend_hash_find(&CG(filenames_table), new_compiled_filename, length+1, (void **) &pp) == SUCCESS) { CG 255 Zend/zend_compile.c CG(compiled_filename) = *pp; CG 259 Zend/zend_compile.c zend_hash_update(&CG(filenames_table), new_compiled_filename, length+1, &p, sizeof(char *), (void **) &pp); CG 260 Zend/zend_compile.c CG(compiled_filename) = p; CG 267 Zend/zend_compile.c CG(compiled_filename) = original_compiled_filename; CG 273 Zend/zend_compile.c return CG(compiled_filename); CG 279 Zend/zend_compile.c return CG(zend_lineno); CG 285 Zend/zend_compile.c return CG(in_compilation); CG 312 Zend/zend_compile.c if (op_array->last_var > CG(context).vars_size) { CG 313 Zend/zend_compile.c CG(context).vars_size += 16; /* FIXME */ CG 314 Zend/zend_compile.c op_array->vars = erealloc(op_array->vars, CG(context).vars_size * sizeof(zend_compiled_variable)); CG 356 Zend/zend_compile.c if (i >= CG(context).literals_size) { CG 357 Zend/zend_compile.c while (i >= CG(context).literals_size) { CG 358 Zend/zend_compile.c CG(context).literals_size += 16; /* FIXME */ CG 360 Zend/zend_compile.c op_array->literals = (zend_literal*)erealloc(op_array->literals, CG(context).literals_size * sizeof(zend_literal)); CG 397 Zend/zend_compile.c lc_literal = zend_add_literal(CG(active_op_array), &c TSRMLS_CC); CG 424 Zend/zend_compile.c lc_literal = zend_add_literal(CG(active_op_array), &c TSRMLS_CC); CG 431 Zend/zend_compile.c lc_literal = zend_add_literal(CG(active_op_array), &c TSRMLS_CC); CG 463 Zend/zend_compile.c lc_literal = zend_add_literal(CG(active_op_array), &c TSRMLS_CC); CG 509 Zend/zend_compile.c tmp_literal = zend_add_literal(CG(active_op_array), &c TSRMLS_CC); CG 515 Zend/zend_compile.c tmp_literal = zend_add_literal(CG(active_op_array), &c TSRMLS_CC); CG 531 Zend/zend_compile.c tmp_literal = zend_add_literal(CG(active_op_array), &c TSRMLS_CC); CG 537 Zend/zend_compile.c tmp_literal = zend_add_literal(CG(active_op_array), &c TSRMLS_CC); CG 547 Zend/zend_compile.c op.constant = zend_add_literal(CG(active_op_array), &_c TSRMLS_CC); \ CG 553 Zend/zend_compile.c op.constant = zend_add_literal(CG(active_op_array), &_c TSRMLS_CC); \ CG 565 Zend/zend_compile.c op.constant = zend_add_literal(CG(active_op_array), &_c TSRMLS_CC); \ CG 578 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 582 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 591 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 595 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 614 Zend/zend_compile.c int last_op_number = get_next_op_number(CG(active_op_array)); CG 615 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 618 Zend/zend_compile.c zend_op *last_op = &CG(active_op_array)->opcodes[last_op_number-1]; CG 634 Zend/zend_compile.c opline->op2.var = get_temporary_variable(CG(active_op_array)); CG 648 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 670 Zend/zend_compile.c (CG(active_op_array)->last == 0 || CG 671 Zend/zend_compile.c CG(active_op_array)->opcodes[CG(active_op_array)->last-1].opcode != ZEND_BEGIN_SILENCE)) { CG 673 Zend/zend_compile.c result->u.op.var = lookup_cv(CG(active_op_array), varname->u.constant.value.str.val, varname->u.constant.value.str.len, hash TSRMLS_CC); CG 674 Zend/zend_compile.c varname->u.constant.value.str.val = (char*)CG(active_op_array)->vars[result->u.op.var].name; CG 684 Zend/zend_compile.c opline_ptr = get_next_op(CG(active_op_array) TSRMLS_CC); CG 689 Zend/zend_compile.c opline_ptr->result.var = get_temporary_variable(CG(active_op_array)); CG 703 Zend/zend_compile.c zend_stack_top(&CG(bp_stack), (void **) &fetch_list_ptr); CG 731 Zend/zend_compile.c zend_stack_top(&CG(bp_stack), (void **) &fetch_list_ptr); CG 737 Zend/zend_compile.c opline.result.var = get_temporary_variable(CG(active_op_array)); CG 739 Zend/zend_compile.c LITERAL_STRINGL(opline.op1, estrdup(CG(active_op_array)->vars[result->u.op.var].name), CG(active_op_array)->vars[result->u.op.var].name_len, 0); CG 745 Zend/zend_compile.c zend_add_class_name_literal(CG(active_op_array), &class_node.u.constant TSRMLS_CC); CG 762 Zend/zend_compile.c opline.result.var = get_temporary_variable(CG(active_op_array)); CG 764 Zend/zend_compile.c LITERAL_STRINGL(opline.op1, estrdup(CG(active_op_array)->vars[opline_ptr->op1.var].name), CG(active_op_array)->vars[opline_ptr->op1.var].name_len, 0); CG 770 Zend/zend_compile.c zend_add_class_name_literal(CG(active_op_array), &class_node.u.constant TSRMLS_CC); CG 785 Zend/zend_compile.c zend_add_class_name_literal(CG(active_op_array), &class_node.u.constant TSRMLS_CC); CG 808 Zend/zend_compile.c zend_stack_top(&CG(bp_stack), (void **) &fetch_list_ptr); CG 823 Zend/zend_compile.c opline.result.var = get_temporary_variable(CG(active_op_array)); CG 853 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 856 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 866 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 878 Zend/zend_compile.c if (CG(active_class_entry)->ce_flags & ZEND_ACC_INTERFACE) { CG 887 Zend/zend_compile.c zend_error(E_COMPILE_ERROR, "%s function %s::%s() cannot be declared private", method_type, CG(active_class_entry)->name, function_name->u.constant.value.str.val); CG 890 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 897 Zend/zend_compile.c zend_error(E_COMPILE_ERROR, "%s function %s::%s() cannot contain body", method_type, CG(active_class_entry)->name, function_name->u.constant.value.str.val); CG 901 Zend/zend_compile.c zend_error(E_COMPILE_ERROR, "Non-abstract method %s::%s() must contain body", CG(active_class_entry)->name, function_name->u.constant.value.str.val); CG 930 Zend/zend_compile.c zend_stack_top(&CG(bp_stack), (void **) &fetch_list_ptr); CG 938 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 941 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 944 Zend/zend_compile.c CG(active_op_array)->vars[value->u.op.var].name, CG 945 Zend/zend_compile.c CG(active_op_array)->vars[value->u.op.var].name_len, 1); CG 956 Zend/zend_compile.c last_op_number = get_next_op_number(CG(active_op_array)); CG 957 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 960 Zend/zend_compile.c if (variable->u.op.var == CG(active_op_array)->this_var) { CG 969 Zend/zend_compile.c last_op = &CG(active_op_array)->opcodes[last_op_number-n-1]; CG 975 Zend/zend_compile.c int opline_no = (opline-CG(active_op_array)->opcodes)/sizeof(*opline); CG 979 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 981 Zend/zend_compile.c last_op = &CG(active_op_array)->opcodes[opline_no]; CG 990 Zend/zend_compile.c int opline_no = (opline-CG(active_op_array)->opcodes)/sizeof(*opline); CG 995 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 997 Zend/zend_compile.c last_op = &CG(active_op_array)->opcodes[opline_no]; CG 1001 Zend/zend_compile.c opline->op2.var = get_temporary_variable(CG(active_op_array)); CG 1020 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 1030 Zend/zend_compile.c if (lvar->u.op.var == CG(active_op_array)->this_var) { CG 1034 Zend/zend_compile.c int last_op_number = get_next_op_number(CG(active_op_array)); CG 1037 Zend/zend_compile.c opline = &CG(active_op_array)->opcodes[last_op_number-1]; CG 1044 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1055 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 1070 Zend/zend_compile.c parent = CG(context).current_brk_cont; CG 1071 Zend/zend_compile.c CG(context).current_brk_cont = CG(active_op_array)->last_brk_cont; CG 1072 Zend/zend_compile.c brk_cont_element = get_next_brk_cont_element(CG(active_op_array)); CG 1073 Zend/zend_compile.c brk_cont_element->start = get_next_op_number(CG(active_op_array)); CG 1084 Zend/zend_compile.c CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].start = -1; CG 1086 Zend/zend_compile.c CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].cont = cont_addr; CG 1087 Zend/zend_compile.c CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].brk = get_next_op_number(CG(active_op_array)); CG 1088 Zend/zend_compile.c CG(context).current_brk_cont = CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].parent; CG 1094 Zend/zend_compile.c int while_cond_op_number = get_next_op_number(CG(active_op_array)); CG 1095 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1103 Zend/zend_compile.c INC_BPC(CG(active_op_array)); CG 1109 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1118 Zend/zend_compile.c CG(active_op_array)->opcodes[close_bracket_token->u.op.opline_num].op2.opline_num = get_next_op_number(CG(active_op_array)); CG 1122 Zend/zend_compile.c DEC_BPC(CG(active_op_array)); CG 1128 Zend/zend_compile.c int for_cond_op_number = get_next_op_number(CG(active_op_array)); CG 1129 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1140 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1144 Zend/zend_compile.c CG(active_op_array)->opcodes[second_semicolon_token->u.op.opline_num].extended_value = get_next_op_number(CG(active_op_array)); CG 1150 Zend/zend_compile.c INC_BPC(CG(active_op_array)); CG 1156 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1160 Zend/zend_compile.c CG(active_op_array)->opcodes[second_semicolon_token->u.op.opline_num].op2.opline_num = get_next_op_number(CG(active_op_array)); CG 1166 Zend/zend_compile.c DEC_BPC(CG(active_op_array)); CG 1172 Zend/zend_compile.c int last_op_number = get_next_op_number(CG(active_op_array)); CG 1176 Zend/zend_compile.c zend_op *last_op = &CG(active_op_array)->opcodes[last_op_number-1]; CG 1181 Zend/zend_compile.c last_op->result.var = get_temporary_variable(CG(active_op_array)); CG 1187 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1192 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 1199 Zend/zend_compile.c int last_op_number = get_next_op_number(CG(active_op_array)); CG 1203 Zend/zend_compile.c zend_op *last_op = &CG(active_op_array)->opcodes[last_op_number-1]; CG 1208 Zend/zend_compile.c last_op->result.var = get_temporary_variable(CG(active_op_array)); CG 1214 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1219 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 1226 Zend/zend_compile.c int if_cond_op_number = get_next_op_number(CG(active_op_array)); CG 1227 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1233 Zend/zend_compile.c INC_BPC(CG(active_op_array)); CG 1239 Zend/zend_compile.c int if_end_op_number = get_next_op_number(CG(active_op_array)); CG 1240 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1249 Zend/zend_compile.c zend_stack_push(&CG(bp_stack), (void *) &jmp_list, sizeof(zend_llist)); CG 1251 Zend/zend_compile.c zend_stack_top(&CG(bp_stack), (void **) &jmp_list_ptr); CG 1254 Zend/zend_compile.c CG(active_op_array)->opcodes[closing_bracket_token->u.op.opline_num].op2.opline_num = if_end_op_number+1; CG 1262 Zend/zend_compile.c int next_op_number = get_next_op_number(CG(active_op_array)); CG 1266 Zend/zend_compile.c zend_stack_top(&CG(bp_stack), (void **) &jmp_list_ptr); CG 1268 Zend/zend_compile.c CG(active_op_array)->opcodes[*((int *) le->data)].op1.opline_num = next_op_number; CG 1271 Zend/zend_compile.c zend_stack_del_top(&CG(bp_stack)); CG 1272 Zend/zend_compile.c DEC_BPC(CG(active_op_array)); CG 1294 Zend/zend_compile.c zend_stack_push(&CG(bp_stack), (void *) &fetch_list, sizeof(zend_llist)); CG 1306 Zend/zend_compile.c zend_stack_top(&CG(bp_stack), (void **) &fetch_list_ptr); CG 1316 Zend/zend_compile.c if (CG(active_op_array)->last == 0 || CG 1317 Zend/zend_compile.c CG(active_op_array)->opcodes[CG(active_op_array)->last-1].opcode != ZEND_BEGIN_SILENCE) { CG 1320 Zend/zend_compile.c if (CG(active_op_array)->this_var == -1) { CG 1321 Zend/zend_compile.c CG(active_op_array)->this_var = lookup_cv(CG(active_op_array), Z_STRVAL(CONSTANT(opline_ptr->op1.constant)), Z_STRLEN(CONSTANT(opline_ptr->op1.constant)), Z_HASH_P(&CONSTANT(opline_ptr->op1.constant)) TSRMLS_CC); CG 1324 Zend/zend_compile.c zend_del_literal(CG(active_op_array), opline_ptr->op1.constant); CG 1330 Zend/zend_compile.c variable->u.op.var = CG(active_op_array)->this_var; CG 1332 Zend/zend_compile.c } else if (CG(active_op_array)->this_var == -1) { CG 1333 Zend/zend_compile.c CG(active_op_array)->this_var = lookup_cv(CG(active_op_array), estrndup("this", sizeof("this")-1), sizeof("this")-1, THIS_HASHVAL TSRMLS_CC); CG 1341 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1347 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1352 Zend/zend_compile.c opline->op1.var = CG(active_op_array)->this_var; CG 1390 Zend/zend_compile.c zend_stack_del_top(&CG(bp_stack)); CG 1399 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1407 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1420 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 1429 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1439 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 1449 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1455 Zend/zend_compile.c zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1]; CG 1469 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1477 Zend/zend_compile.c while (opline>CG(active_op_array)->opcodes) { CG 1539 Zend/zend_compile.c if (CG(active_class_entry)->ce_flags & ZEND_ACC_INTERFACE) { CG 1541 Zend/zend_compile.c zend_error(E_COMPILE_ERROR, "Access type for interface method %s::%s() must be omitted", CG(active_class_entry)->name, function_name->u.constant.value.str.val); CG 1549 Zend/zend_compile.c if ((fn_flags & ZEND_ACC_STATIC) && (fn_flags & ZEND_ACC_ABSTRACT) && !(CG(active_class_entry)->ce_flags & ZEND_ACC_INTERFACE)) { CG 1550 Zend/zend_compile.c zend_error(E_STRICT, "Static function %s%s%s() should not be abstract", is_method ? CG(active_class_entry)->name : "", is_method ? "::" : "", Z_STRVAL(function_name->u.constant)); CG 1553 Zend/zend_compile.c function_token->u.op_array = CG(active_op_array); CG 1555 Zend/zend_compile.c orig_interactive = CG(interactive); CG 1556 Zend/zend_compile.c CG(interactive) = 0; CG 1558 Zend/zend_compile.c CG(interactive) = orig_interactive; CG 1566 Zend/zend_compile.c op_array.scope = is_method?CG(active_class_entry):NULL; CG 1577 Zend/zend_compile.c result = zend_hash_quick_add(&CG(active_class_entry)->function_table, lcname, name_len+1, INTERNED_HASH(lcname), &op_array, sizeof(zend_op_array), (void **) &CG(active_op_array)); CG 1579 Zend/zend_compile.c result = zend_hash_add(&CG(active_class_entry)->function_table, lcname, name_len+1, &op_array, sizeof(zend_op_array), (void **) &CG(active_op_array)); CG 1582 Zend/zend_compile.c zend_error(E_COMPILE_ERROR, "Cannot redeclare %s::%s()", CG(active_class_entry)->name, name); CG 1585 Zend/zend_compile.c zend_stack_push(&CG(context_stack), (void *) &CG(context), sizeof(CG(context))); CG 1589 Zend/zend_compile.c CG(active_class_entry)->ce_flags |= ZEND_ACC_IMPLICIT_ABSTRACT_CLASS; CG 1596 Zend/zend_compile.c if (CG(active_class_entry)->ce_flags & ZEND_ACC_INTERFACE) { CG 1633 Zend/zend_compile.c class_lcname = do_alloca(CG(active_class_entry)->name_length + 1, use_heap); CG 1634 Zend/zend_compile.c zend_str_tolower_copy(class_lcname, CG(active_class_entry)->name, CG(active_class_entry)->name_length); CG 1637 Zend/zend_compile.c if ((CG(active_class_entry)->name_length == name_len) && ((CG(active_class_entry)->ce_flags & ZEND_ACC_TRAIT) != ZEND_ACC_TRAIT) && (!memcmp(class_lcname, lcname, name_len))) { CG 1638 Zend/zend_compile.c if (!CG(active_class_entry)->constructor) { CG 1639 Zend/zend_compile.c CG(active_class_entry)->constructor = (zend_function *) CG(active_op_array); CG 1642 Zend/zend_compile.c if (CG(active_class_entry)->constructor) { CG 1643 Zend/zend_compile.c zend_error(E_STRICT, "Redefining already defined constructor for class %s", CG(active_class_entry)->name); CG 1645 Zend/zend_compile.c CG(active_class_entry)->constructor = (zend_function *) CG(active_op_array); CG 1647 Zend/zend_compile.c CG(active_class_entry)->destructor = (zend_function *) CG(active_op_array); CG 1649 Zend/zend_compile.c CG(active_class_entry)->clone = (zend_function *) CG(active_op_array); CG 1654 Zend/zend_compile.c CG(active_class_entry)->__call = (zend_function *) CG(active_op_array); CG 1659 Zend/zend_compile.c CG(active_class_entry)->__callstatic = (zend_function *) CG(active_op_array); CG 1664 Zend/zend_compile.c CG(active_class_entry)->__get = (zend_function *) CG(active_op_array); CG 1669 Zend/zend_compile.c CG(active_class_entry)->__set = (zend_function *) CG(active_op_array); CG 1674 Zend/zend_compile.c CG(active_class_entry)->__unset = (zend_function *) CG(active_op_array); CG 1679 Zend/zend_compile.c CG(active_class_entry)->__isset = (zend_function *) CG(active_op_array); CG 1684 Zend/zend_compile.c CG(active_class_entry)->__tostring = (zend_function *) CG(active_op_array); CG 1690 Zend/zend_compile.c CG(active_op_array)->fn_flags |= ZEND_ACC_ALLOW_STATIC; CG 1697 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1700 Zend/zend_compile.c if (CG(current_namespace)) { CG 1704 Zend/zend_compile.c tmp.u.constant = *CG(current_namespace); CG 1717 Zend/zend_compile.c opline->op1.constant = zend_add_literal(CG(active_op_array), &key TSRMLS_CC); CG 1723 Zend/zend_compile.c zend_hash_quick_update(CG(function_table), Z_STRVAL(key), Z_STRLEN(key), Z_HASH_P(&CONSTANT(opline->op1.constant)), &op_array, sizeof(zend_op_array), (void **) &CG(active_op_array)); CG 1724 Zend/zend_compile.c zend_stack_push(&CG(context_stack), (void *) &CG(context), sizeof(CG(context))); CG 1728 Zend/zend_compile.c if (CG(compiler_options) & ZEND_COMPILE_EXTENDED_INFO) { CG 1729 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1745 Zend/zend_compile.c zend_stack_push(&CG(switch_cond_stack), (void *) &switch_entry, sizeof(switch_entry)); CG 1754 Zend/zend_compile.c zend_stack_push(&CG(foreach_copy_stack), (void *) &dummy_opline, sizeof(zend_op)); CG 1757 Zend/zend_compile.c if (CG(doc_comment)) { CG 1758 Zend/zend_compile.c CG(active_op_array)->doc_comment = CG(doc_comment); CG 1759 Zend/zend_compile.c CG(active_op_array)->doc_comment_len = CG(doc_comment_len); CG 1760 Zend/zend_compile.c CG(doc_comment) = NULL; CG 1761 Zend/zend_compile.c CG(doc_comment_len) = 0; CG 1769 Zend/zend_compile.c zend_op_array *current_op_array = CG(active_op_array); CG 1770 Zend/zend_compile.c int current_op_number = get_next_op_number(CG(active_op_array)); CG 1787 Zend/zend_compile.c CG(active_op_array)->fn_flags |= ZEND_ACC_STATIC; CG 1789 Zend/zend_compile.c CG(active_op_array)->fn_flags |= ZEND_ACC_CLOSURE; CG 1795 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1811 Zend/zend_compile.c pass_two(CG(active_op_array) TSRMLS_CC); CG 1814 Zend/zend_compile.c if (CG(active_class_entry)) { CG 1815 Zend/zend_compile.c zend_check_magic_method_implementation(CG(active_class_entry), (zend_function*)CG(active_op_array), E_COMPILE_ERROR TSRMLS_CC); CG 1819 Zend/zend_compile.c name_len = strlen(CG(active_op_array)->function_name); CG 1820 Zend/zend_compile.c zend_str_tolower_copy(lcname, CG(active_op_array)->function_name, MIN(name_len, sizeof(lcname)-1)); CG 1822 Zend/zend_compile.c if (name_len == sizeof(ZEND_AUTOLOAD_FUNC_NAME) - 1 && !memcmp(lcname, ZEND_AUTOLOAD_FUNC_NAME, sizeof(ZEND_AUTOLOAD_FUNC_NAME)) && CG(active_op_array)->num_args != 1) { CG 1827 Zend/zend_compile.c CG(active_op_array)->line_end = zend_get_compiled_lineno(TSRMLS_C); CG 1828 Zend/zend_compile.c CG(active_op_array) = function_token->u.op_array; CG 1832 Zend/zend_compile.c zend_stack_del_top(&CG(switch_cond_stack)); CG 1833 Zend/zend_compile.c zend_stack_del_top(&CG(foreach_copy_stack)); CG 1856 Zend/zend_compile.c var.u.op.var = lookup_cv(CG(active_op_array), varname->u.constant.value.str.val, varname->u.constant.value.str.len, 0 TSRMLS_CC); CG 1857 Zend/zend_compile.c Z_STRVAL(varname->u.constant) = (char*)CG(active_op_array)->vars[var.u.op.var].name; CG 1859 Zend/zend_compile.c if (CG(active_op_array)->vars[var.u.op.var].hash_value == THIS_HASHVAL && CG 1862 Zend/zend_compile.c if (CG(active_op_array)->scope && CG 1863 Zend/zend_compile.c (CG(active_op_array)->fn_flags & ZEND_ACC_STATIC) == 0) { CG 1866 Zend/zend_compile.c CG(active_op_array)->this_var = var.u.op.var; CG 1870 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1871 Zend/zend_compile.c CG(active_op_array)->num_args++; CG 1878 Zend/zend_compile.c CG(active_op_array)->required_num_args = CG(active_op_array)->num_args; CG 1881 Zend/zend_compile.c CG(active_op_array)->arg_info = erealloc(CG(active_op_array)->arg_info, sizeof(zend_arg_info)*(CG(active_op_array)->num_args)); CG 1882 Zend/zend_compile.c cur_arg_info = &CG(active_op_array)->arg_info[CG(active_op_array)->num_args-1]; CG 1942 Zend/zend_compile.c if (check_namespace && CG(current_namespace) && !is_compound) { CG 1953 Zend/zend_compile.c if ((zend_hash_find(CG(function_table), lcname, function_name->u.constant.value.str.len+1, (void **) &function)==FAILURE) || CG 1954 Zend/zend_compile.c ((CG(compiler_options) & ZEND_COMPILE_IGNORE_INTERNAL_FUNCTIONS) && CG 1963 Zend/zend_compile.c zend_stack_push(&CG(function_call_stack), (void *) &function, sizeof(zend_function *)); CG 1964 Zend/zend_compile.c if (CG(context).nested_calls + 1 > CG(active_op_array)->nested_calls) { CG 1965 Zend/zend_compile.c CG(active_op_array)->nested_calls = CG(context).nested_calls + 1; CG 1981 Zend/zend_compile.c last_op_number = get_next_op_number(CG(active_op_array))-1; CG 1982 Zend/zend_compile.c last_op = &CG(active_op_array)->opcodes[last_op_number]; CG 2001 Zend/zend_compile.c zend_add_func_name_literal(CG(active_op_array), &name TSRMLS_CC); CG 2006 Zend/zend_compile.c last_op->result.num = CG(context).nested_calls; CG 2009 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2011 Zend/zend_compile.c opline->result.num = CG(context).nested_calls; CG 2015 Zend/zend_compile.c opline->op2.constant = zend_add_func_name_literal(CG(active_op_array), &left_bracket->u.constant TSRMLS_CC); CG 2022 Zend/zend_compile.c zend_stack_push(&CG(function_call_stack), (void *) &ptr, sizeof(zend_function *)); CG 2023 Zend/zend_compile.c if (++CG(context).nested_calls > CG(active_op_array)->nested_calls) { CG 2024 Zend/zend_compile.c CG(active_op_array)->nested_calls = CG(context).nested_calls; CG 2032 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2038 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 2048 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2053 Zend/zend_compile.c opline->result.num = CG(context).nested_calls; CG 2056 Zend/zend_compile.c opline->op2.constant = zend_add_ns_func_name_literal(CG(active_op_array), &function_name->u.constant TSRMLS_CC); CG 2060 Zend/zend_compile.c opline->result.num = CG(context).nested_calls; CG 2064 Zend/zend_compile.c opline->op2.constant = zend_add_func_name_literal(CG(active_op_array), &function_name->u.constant TSRMLS_CC); CG 2071 Zend/zend_compile.c zend_stack_push(&CG(function_call_stack), (void *) &ptr, sizeof(zend_function *)); CG 2072 Zend/zend_compile.c if (++CG(context).nested_calls > CG(active_op_array)->nested_calls) { CG 2073 Zend/zend_compile.c CG(active_op_array)->nested_calls = CG(context).nested_calls; CG 2097 Zend/zend_compile.c if (compound && CG(current_import)) { CG 2101 Zend/zend_compile.c if (zend_hash_find(CG(current_import), lcname, len+1, (void**)&ns) == SUCCESS) { CG 2117 Zend/zend_compile.c if (CG(current_namespace)) { CG 2119 Zend/zend_compile.c Z_STRLEN(tmp.u.constant) = sizeof("\\")-1 + Z_STRLEN(element_name->u.constant) + Z_STRLEN_P(CG(current_namespace)); CG 2121 Zend/zend_compile.c memcpy(Z_STRVAL(tmp.u.constant), Z_STRVAL_P(CG(current_namespace)), Z_STRLEN_P(CG(current_namespace))); CG 2122 Zend/zend_compile.c memcpy(&(Z_STRVAL(tmp.u.constant)[Z_STRLEN_P(CG(current_namespace))]), "\\", sizeof("\\")-1); CG 2123 Zend/zend_compile.c memcpy(&(Z_STRVAL(tmp.u.constant)[Z_STRLEN_P(CG(current_namespace)) + sizeof("\\")-1]), Z_STRVAL(element_name->u.constant), Z_STRLEN(element_name->u.constant)+1); CG 2140 Zend/zend_compile.c if (!CG(active_class_entry)) { CG 2143 Zend/zend_compile.c if (CG(active_class_entry)->ce_flags & ZEND_ACC_TRAIT) { CG 2151 Zend/zend_compile.c ZVAL_STRINGL(&class_name->u.constant, CG(active_class_entry)->name, CG(active_class_entry)->name_length, 1); CG 2162 Zend/zend_compile.c if (!CG(active_class_entry)) { CG 2206 Zend/zend_compile.c if (CG(current_import)) { CG 2210 Zend/zend_compile.c if (zend_hash_find(CG(current_import), lcname, len+1, (void**)&ns) == SUCCESS) { CG 2226 Zend/zend_compile.c if (CG(current_namespace)) { CG 2228 Zend/zend_compile.c tmp.u.constant = *CG(current_namespace); CG 2234 Zend/zend_compile.c } else if (CG(current_import) || CG(current_namespace)) { CG 2238 Zend/zend_compile.c if (CG(current_import) && CG 2239 Zend/zend_compile.c zend_hash_find(CG(current_import), lcname, Z_STRLEN(class_name->u.constant)+1, (void**)&ns) == SUCCESS) { CG 2244 Zend/zend_compile.c } else if (CG(current_namespace)) { CG 2247 Zend/zend_compile.c tmp.u.constant = *CG(current_namespace); CG 2271 Zend/zend_compile.c fetch_class_op_number = get_next_op_number(CG(active_op_array)); CG 2272 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2277 Zend/zend_compile.c CG(catch_begin) = fetch_class_op_number; CG 2294 Zend/zend_compile.c zend_add_class_name_literal(CG(active_op_array), &class_name->u.constant TSRMLS_CC); CG 2300 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 2311 Zend/zend_compile.c if (!CG(context).labels) { CG 2312 Zend/zend_compile.c ALLOC_HASHTABLE(CG(context).labels); CG 2313 Zend/zend_compile.c zend_hash_init(CG(context).labels, 4, NULL, NULL, 0); CG 2316 Zend/zend_compile.c dest.brk_cont = CG(context).current_brk_cont; CG 2317 Zend/zend_compile.c dest.opline_num = get_next_op_number(CG(active_op_array)); CG 2319 Zend/zend_compile.c if (zend_hash_add(CG(context).labels, Z_STRVAL(label->u.constant), Z_STRLEN(label->u.constant) + 1, (void**)&dest, sizeof(zend_label), NULL) == FAILURE) { CG 2339 Zend/zend_compile.c if (CG(context).labels == NULL || CG 2340 Zend/zend_compile.c zend_hash_find(CG(context).labels, Z_STRVAL_P(label), Z_STRLEN_P(label)+1, (void**)&dest) == FAILURE) { CG 2343 Zend/zend_compile.c CG(in_compilation) = 1; CG 2344 Zend/zend_compile.c CG(active_op_array) = op_array; CG 2345 Zend/zend_compile.c CG(zend_lineno) = opline->lineno; CG 2363 Zend/zend_compile.c CG(in_compilation) = 1; CG 2364 Zend/zend_compile.c CG(active_op_array) = op_array; CG 2365 Zend/zend_compile.c CG(zend_lineno) = opline->lineno; CG 2390 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2393 Zend/zend_compile.c opline->extended_value = CG(context).current_brk_cont; CG 2396 Zend/zend_compile.c zend_resolve_goto_label(CG(active_op_array), opline, 0 TSRMLS_CC); CG 2402 Zend/zend_compile.c if (CG(context).labels) { CG 2403 Zend/zend_compile.c zend_hash_destroy(CG(context).labels); CG 2404 Zend/zend_compile.c FREE_HASHTABLE(CG(context).labels); CG 2405 Zend/zend_compile.c CG(context).labels = NULL; CG 2407 Zend/zend_compile.c if (!temporary && !zend_stack_is_empty(&CG(context_stack))) { CG 2410 Zend/zend_compile.c zend_stack_top(&CG(context_stack), (void**)&ctx); CG 2411 Zend/zend_compile.c CG(context) = *ctx; CG 2412 Zend/zend_compile.c zend_stack_del_top(&CG(context_stack)); CG 2469 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2472 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2476 Zend/zend_compile.c opline->result.num = CG(context).nested_calls; CG 2480 Zend/zend_compile.c zend_add_class_name_literal(CG(active_op_array), &class_node.u.constant TSRMLS_CC); CG 2487 Zend/zend_compile.c zend_add_func_name_literal(CG(active_op_array), &method_name->u.constant TSRMLS_CC); CG 2497 Zend/zend_compile.c zend_stack_push(&CG(function_call_stack), (void *) &ptr, sizeof(zend_function *)); CG 2498 Zend/zend_compile.c if (++CG(context).nested_calls > CG(active_op_array)->nested_calls) { CG 2499 Zend/zend_compile.c CG(active_op_array)->nested_calls = CG(context).nested_calls; CG 2515 Zend/zend_compile.c opline = &CG(active_op_array)->opcodes[Z_LVAL(function_name->u.constant)]; CG 2517 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2522 Zend/zend_compile.c opline->op2.num = CG(context).nested_calls; CG 2529 Zend/zend_compile.c opline->op2.num = --CG(context).nested_calls; CG 2533 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 2537 Zend/zend_compile.c zend_stack_del_top(&CG(function_call_stack)); CG 2540 Zend/zend_compile.c if (CG(context).used_stack + 1 > CG(active_op_array)->used_stack) { CG 2541 Zend/zend_compile.c CG(active_op_array)->used_stack = CG(context).used_stack + 1; CG 2543 Zend/zend_compile.c CG(context).used_stack -= Z_LVAL(argument_list->u.constant); CG 2555 Zend/zend_compile.c zend_stack_top(&CG(function_call_stack), (void **) &function_ptr_ptr); CG 2632 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2652 Zend/zend_compile.c if (++CG(context).used_stack > CG(active_op_array)->used_stack) { CG 2653 Zend/zend_compile.c CG(active_op_array)->used_stack = CG(context).used_stack; CG 2666 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2685 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2699 Zend/zend_compile.c zend_bool returns_reference = (CG(active_op_array)->fn_flags & ZEND_ACC_RETURN_REFERENCE) != 0; CG 2711 Zend/zend_compile.c start_op_number = get_next_op_number(CG(active_op_array)); CG 2714 Zend/zend_compile.c zend_stack_apply_with_argument(&CG(switch_cond_stack), ZEND_STACK_APPLY_TOPDOWN, (int (*)(void *element, void *)) generate_free_switch_expr TSRMLS_CC); CG 2715 Zend/zend_compile.c zend_stack_apply_with_argument(&CG(foreach_copy_stack), ZEND_STACK_APPLY_TOPDOWN, (int (*)(void *element, void *)) generate_free_foreach_copy TSRMLS_CC); CG 2717 Zend/zend_compile.c zend_stack_apply(&CG(switch_cond_stack), ZEND_STACK_APPLY_TOPDOWN, (int (*)(void *element)) generate_free_switch_expr); CG 2718 Zend/zend_compile.c zend_stack_apply(&CG(foreach_copy_stack), ZEND_STACK_APPLY_TOPDOWN, (int (*)(void *element)) generate_free_foreach_copy); CG 2721 Zend/zend_compile.c end_op_number = get_next_op_number(CG(active_op_array)); CG 2723 Zend/zend_compile.c CG(active_op_array)->opcodes[start_op_number].extended_value |= EXT_TYPE_FREE_ON_RETURN; CG 2727 Zend/zend_compile.c if (CG(context).in_finally) { CG 2728 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2734 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2757 Zend/zend_compile.c if (!CG(active_op_array)->function_name) { CG 2761 Zend/zend_compile.c CG(active_op_array)->fn_flags |= ZEND_ACC_GENERATOR; CG 2764 Zend/zend_compile.c if ((CG(active_op_array)->fn_flags & ZEND_ACC_RETURN_REFERENCE) && !zend_is_function_or_method_call(value)) { CG 2771 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2792 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 2799 Zend/zend_compile.c int try_catch_offset = CG(active_op_array)->last_try_catch++; CG 2801 Zend/zend_compile.c CG(active_op_array)->try_catch_array = erealloc(CG(active_op_array)->try_catch_array, sizeof(zend_try_catch_element)*CG(active_op_array)->last_try_catch); CG 2802 Zend/zend_compile.c CG(active_op_array)->try_catch_array[try_catch_offset].try_op = try_op; CG 2803 Zend/zend_compile.c CG(active_op_array)->try_catch_array[try_catch_offset].catch_op = 0; CG 2804 Zend/zend_compile.c CG(active_op_array)->try_catch_array[try_catch_offset].finally_op = 0; CG 2805 Zend/zend_compile.c CG(active_op_array)->try_catch_array[try_catch_offset].finally_end = 0; CG 2812 Zend/zend_compile.c CG(active_op_array)->try_catch_array[offset].catch_op = catch_op; CG 2818 Zend/zend_compile.c open_parentheses->u.op.opline_num = get_next_op_number(CG(active_op_array)); CG 2824 Zend/zend_compile.c int jmp_op_number = get_next_op_number(CG(active_op_array)); CG 2825 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2835 Zend/zend_compile.c zend_stack_push(&CG(bp_stack), (void *) &jmp_list, sizeof(zend_llist)); CG 2836 Zend/zend_compile.c zend_stack_top(&CG(bp_stack), (void **) &jmp_list_ptr); CG 2839 Zend/zend_compile.c catch_token->EA = get_next_op_number(CG(active_op_array)); CG 2845 Zend/zend_compile.c CG(active_op_array)->last--; CG 2848 Zend/zend_compile.c CG(active_op_array)->opcodes[first_catch->u.op.opline_num].result.num = 1; CG 2849 Zend/zend_compile.c CG(active_op_array)->opcodes[first_catch->u.op.opline_num].extended_value = get_next_op_number(CG(active_op_array)); CG 2851 Zend/zend_compile.c CG(active_op_array)->opcodes[last_additional_catch->u.op.opline_num].result.num = 1; CG 2852 Zend/zend_compile.c CG(active_op_array)->opcodes[last_additional_catch->u.op.opline_num].extended_value = get_next_op_number(CG(active_op_array)); CG 2854 Zend/zend_compile.c DEC_BPC(CG(active_op_array)); CG 2860 Zend/zend_compile.c try_token->u.op.opline_num = zend_add_try_element(get_next_op_number(CG(active_op_array)) TSRMLS_CC); CG 2861 Zend/zend_compile.c INC_BPC(CG(active_op_array)); CG 2867 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2869 Zend/zend_compile.c finally_token->u.op.opline_num = get_next_op_number(CG(active_op_array)); CG 2878 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2883 Zend/zend_compile.c CG(context).in_finally++; CG 2901 Zend/zend_compile.c catch_op_number = get_next_op_number(CG(active_op_array)); CG 2906 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2909 Zend/zend_compile.c opline->op1.constant = zend_add_class_name_literal(CG(active_op_array), &catch_class.u.constant TSRMLS_CC); CG 2911 Zend/zend_compile.c opline->op2.var = lookup_cv(CG(active_op_array), catch_var->u.constant.value.str.val, catch_var->u.constant.value.str.len, 0 TSRMLS_CC); CG 2912 Zend/zend_compile.c Z_STRVAL(catch_var->u.constant) = (char*)CG(active_op_array)->vars[opline->op2.var].name; CG 2921 Zend/zend_compile.c int jmp_op_number = get_next_op_number(CG(active_op_array)); CG 2922 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2930 Zend/zend_compile.c zend_stack_top(&CG(bp_stack), (void **) &jmp_list_ptr); CG 2933 Zend/zend_compile.c CG(active_op_array)->opcodes[catch_token->u.op.opline_num].extended_value = get_next_op_number(CG(active_op_array)); CG 2952 Zend/zend_compile.c CG(active_op_array)->try_catch_array[try_token->u.op.opline_num].finally_op = finally_token->u.op.opline_num + 1; CG 2953 Zend/zend_compile.c CG(active_op_array)->try_catch_array[try_token->u.op.opline_num].finally_end = get_next_op_number(CG(active_op_array)); CG 2954 Zend/zend_compile.c CG(active_op_array)->has_finally_block = 1; CG 2956 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 2961 Zend/zend_compile.c CG(active_op_array)->opcodes[finally_token->u.op.opline_num].op1.opline_num = get_next_op_number(CG(active_op_array)); CG 2963 Zend/zend_compile.c CG(context).in_finally--; CG 2972 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 4511 Zend/zend_compile.c zend_class_entry *ce = CG(active_class_entry); CG 4540 Zend/zend_compile.c zend_class_entry *ce = CG(active_class_entry); CG 4639 Zend/zend_compile.c zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1]; CG 4642 Zend/zend_compile.c while (opline->opcode == ZEND_TICKS && opline > CG(active_op_array)->opcodes) { CG 4648 Zend/zend_compile.c if (do_bind_function(CG(active_op_array), opline, CG(function_table), 1) == FAILURE) { CG 4651 Zend/zend_compile.c table = CG(function_table); CG 4654 Zend/zend_compile.c if (do_bind_class(CG(active_op_array), opline, CG(class_table), 1 TSRMLS_CC) == NULL) { CG 4657 Zend/zend_compile.c table = CG(class_table); CG 4667 Zend/zend_compile.c ((CG(compiler_options) & ZEND_COMPILE_IGNORE_INTERNAL_CLASSES) && CG 4669 Zend/zend_compile.c if (CG(compiler_options) & ZEND_COMPILE_DELAYED_BINDING) { CG 4670 Zend/zend_compile.c zend_uint *opline_num = &CG(active_op_array)->early_binding; CG 4673 Zend/zend_compile.c opline_num = &CG(active_op_array)->opcodes[*opline_num].result.opline_num; CG 4675 Zend/zend_compile.c *opline_num = opline - CG(active_op_array)->opcodes; CG 4682 Zend/zend_compile.c if (do_bind_inherited_class(CG(active_op_array), opline, CG(class_table), *pce, 1 TSRMLS_CC) == NULL) { CG 4686 Zend/zend_compile.c zend_del_literal(CG(active_op_array), fetch_class_opline->op2.constant); CG 4689 Zend/zend_compile.c table = CG(class_table); CG 4705 Zend/zend_compile.c zend_del_literal(CG(active_op_array), opline->op1.constant); CG 4706 Zend/zend_compile.c zend_del_literal(CG(active_op_array), opline->op2.constant); CG 4714 Zend/zend_compile.c zend_bool orig_in_compilation = CG(in_compilation); CG 4718 Zend/zend_compile.c CG(in_compilation) = 1; CG 4725 Zend/zend_compile.c CG(in_compilation) = orig_in_compilation; CG 4732 Zend/zend_compile.c int next_op_number = get_next_op_number(CG(active_op_array)); CG 4733 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 4739 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 4753 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 4761 Zend/zend_compile.c CG(active_op_array)->opcodes[op_token->u.op.opline_num].op2.opline_num = get_next_op_number(CG(active_op_array)); CG 4767 Zend/zend_compile.c int next_op_number = get_next_op_number(CG(active_op_array)); CG 4768 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 4774 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 4788 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 4796 Zend/zend_compile.c CG(active_op_array)->opcodes[op_token->u.op.opline_num].op2.opline_num = get_next_op_number(CG(active_op_array)); CG 4803 Zend/zend_compile.c INC_BPC(CG(active_op_array)); CG 4809 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 4818 Zend/zend_compile.c DEC_BPC(CG(active_op_array)); CG 4824 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 4827 Zend/zend_compile.c opline->op1.opline_num = CG(context).current_brk_cont; CG 4850 Zend/zend_compile.c zend_stack_push(&CG(switch_cond_stack), (void *) &switch_entry, sizeof(switch_entry)); CG 4854 Zend/zend_compile.c INC_BPC(CG(active_op_array)); CG 4863 Zend/zend_compile.c zend_stack_top(&CG(switch_cond_stack), (void **) &switch_entry_ptr); CG 4867 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 4875 Zend/zend_compile.c int next_op_number = get_next_op_number(CG(active_op_array)); CG 4877 Zend/zend_compile.c CG(active_op_array)->opcodes[case_list->u.op.opline_num].op1.opline_num = next_op_number; CG 4881 Zend/zend_compile.c CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].cont = CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].brk = get_next_op_number(CG(active_op_array)); CG 4882 Zend/zend_compile.c CG(context).current_brk_cont = CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].parent; CG 4886 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 4895 Zend/zend_compile.c zend_stack_del_top(&CG(switch_cond_stack)); CG 4897 Zend/zend_compile.c DEC_BPC(CG(active_op_array)); CG 4903 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 4908 Zend/zend_compile.c zend_stack_top(&CG(switch_cond_stack), (void **) &switch_entry_ptr); CG 4911 Zend/zend_compile.c switch_entry_ptr->control_var = get_temporary_variable(CG(active_op_array)); CG 4923 Zend/zend_compile.c next_op_number = get_next_op_number(CG(active_op_array)); CG 4924 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 4933 Zend/zend_compile.c next_op_number = get_next_op_number(CG(active_op_array)); CG 4934 Zend/zend_compile.c CG(active_op_array)->opcodes[case_list->u.op.opline_num].op1.opline_num = next_op_number; CG 4940 Zend/zend_compile.c int next_op_number = get_next_op_number(CG(active_op_array)); CG 4941 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 4948 Zend/zend_compile.c switch (CG(active_op_array)->opcodes[case_token->u.op.opline_num].opcode) { CG 4950 Zend/zend_compile.c CG(active_op_array)->opcodes[case_token->u.op.opline_num].op1.opline_num = get_next_op_number(CG(active_op_array)); CG 4953 Zend/zend_compile.c CG(active_op_array)->opcodes[case_token->u.op.opline_num].op2.opline_num = get_next_op_number(CG(active_op_array)); CG 4961 Zend/zend_compile.c int next_op_number = get_next_op_number(CG(active_op_array)); CG 4962 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 4965 Zend/zend_compile.c zend_stack_top(&CG(switch_cond_stack), (void **) &switch_entry_ptr); CG 4972 Zend/zend_compile.c next_op_number = get_next_op_number(CG(active_op_array)); CG 4978 Zend/zend_compile.c CG(active_op_array)->opcodes[case_list->u.op.opline_num].op1.opline_num = next_op_number; CG 4991 Zend/zend_compile.c if (CG(active_class_entry)) { CG 5004 Zend/zend_compile.c if (CG(current_import) && CG 5005 Zend/zend_compile.c zend_hash_find(CG(current_import), lcname, Z_STRLEN(class_name->u.constant)+1, (void**)&ns_name) == SUCCESS) { CG 5009 Zend/zend_compile.c if (CG(current_namespace)) { CG 5014 Zend/zend_compile.c tmp.u.constant = *CG(current_namespace); CG 5059 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 5062 Zend/zend_compile.c opline->op1.constant = zend_add_literal(CG(active_op_array), &key TSRMLS_CC); CG 5082 Zend/zend_compile.c zend_hash_quick_update(CG(class_table), Z_STRVAL(key), Z_STRLEN(key), Z_HASH_P(&CONSTANT(opline->op1.constant)), &new_class_entry, sizeof(zend_class_entry *), NULL); CG 5083 Zend/zend_compile.c CG(active_class_entry) = new_class_entry; CG 5085 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 5087 Zend/zend_compile.c GET_NODE(&CG(implementing_class), opline->result); CG 5089 Zend/zend_compile.c if (CG(doc_comment)) { CG 5090 Zend/zend_compile.c CG(active_class_entry)->info.user.doc_comment = CG(doc_comment); CG 5091 Zend/zend_compile.c CG(active_class_entry)->info.user.doc_comment_len = CG(doc_comment_len); CG 5092 Zend/zend_compile.c CG(doc_comment) = NULL; CG 5093 Zend/zend_compile.c CG(doc_comment_len) = 0; CG 5100 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 5103 Zend/zend_compile.c SET_NODE(opline->op1, &CG(implementing_class)); CG 5110 Zend/zend_compile.c zend_class_entry *ce = CG(active_class_entry); CG 5144 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 5146 Zend/zend_compile.c SET_NODE(opline->op1, &CG(implementing_class)); CG 5166 Zend/zend_compile.c CG(active_class_entry) = NULL; CG 5175 Zend/zend_compile.c if ((CG(active_class_entry)->ce_flags & ZEND_ACC_TRAIT) == ZEND_ACC_TRAIT) { CG 5178 Zend/zend_compile.c CG(active_class_entry)->name); CG 5191 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 5193 Zend/zend_compile.c SET_NODE(opline->op1, &CG(implementing_class)); CG 5197 Zend/zend_compile.c opline->op2.constant = zend_add_class_name_literal(CG(active_op_array), &interface_name->u.constant TSRMLS_CC); CG 5198 Zend/zend_compile.c CG(active_class_entry)->num_interfaces++; CG 5206 Zend/zend_compile.c if ((CG(active_class_entry)->ce_flags & ZEND_ACC_INTERFACE)) { CG 5209 Zend/zend_compile.c Z_STRVAL(trait_name->u.constant), CG(active_class_entry)->name); CG 5223 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 5225 Zend/zend_compile.c SET_NODE(opline->op1, &CG(implementing_class)); CG 5229 Zend/zend_compile.c opline->op2.constant = zend_add_class_name_literal(CG(active_op_array), &trait_name->u.constant TSRMLS_CC); CG 5230 Zend/zend_compile.c CG(active_class_entry)->num_traits++; CG 5305 Zend/zend_compile.c if (CG(active_class_entry)->ce_flags & ZEND_ACC_INTERFACE) { CG 5315 Zend/zend_compile.c CG(active_class_entry)->name, var_name->u.constant.value.str.val); CG 5318 Zend/zend_compile.c if (zend_hash_find(&CG(active_class_entry)->properties_info, var_name->u.constant.value.str.val, var_name->u.constant.value.str.len+1, (void **) &existing_property_info)==SUCCESS) { CG 5319 Zend/zend_compile.c zend_error(E_COMPILE_ERROR, "Cannot redeclare %s::$%s", CG(active_class_entry)->name, var_name->u.constant.value.str.val); CG 5330 Zend/zend_compile.c if (CG(doc_comment)) { CG 5331 Zend/zend_compile.c comment = CG(doc_comment); CG 5332 Zend/zend_compile.c comment_len = CG(doc_comment_len); CG 5333 Zend/zend_compile.c CG(doc_comment) = NULL; CG 5334 Zend/zend_compile.c CG(doc_comment_len) = 0; CG 5337 Zend/zend_compile.c zend_declare_property_ex(CG(active_class_entry), zend_new_interned_string(var_name->u.constant.value.str.val, var_name->u.constant.value.str.len + 1, 0 TSRMLS_CC), var_name->u.constant.value.str.len, property, access_type, comment, comment_len TSRMLS_CC); CG 5352 Zend/zend_compile.c if ((CG(active_class_entry)->ce_flags & ZEND_ACC_TRAIT) == ZEND_ACC_TRAIT) { CG 5363 Zend/zend_compile.c result = zend_hash_quick_add(&CG(active_class_entry)->constants_table, cname, var_name->u.constant.value.str.len+1, INTERNED_HASH(cname), &property, sizeof(zval *), NULL); CG 5365 Zend/zend_compile.c result = zend_hash_add(&CG(active_class_entry)->constants_table, cname, var_name->u.constant.value.str.len+1, &property, sizeof(zval *), NULL); CG 5369 Zend/zend_compile.c zend_error(E_COMPILE_ERROR, "Cannot redefine class constant %s::%s", CG(active_class_entry)->name, var_name->u.constant.value.str.val); CG 5373 Zend/zend_compile.c if (CG(doc_comment)) { CG 5374 Zend/zend_compile.c efree(CG(doc_comment)); CG 5375 Zend/zend_compile.c CG(doc_comment) = NULL; CG 5376 Zend/zend_compile.c CG(doc_comment_len) = 0; CG 5386 Zend/zend_compile.c zend_stack_top(&CG(bp_stack), (void **) &fetch_list_ptr); CG 5389 Zend/zend_compile.c if (object->u.op.var == CG(active_op_array)->this_var) { CG 5397 Zend/zend_compile.c zend_del_literal(CG(active_op_array), opline_ptr->op1.constant); CG 5443 Zend/zend_compile.c opline.result.var = get_temporary_variable(CG(active_op_array)); CG 5462 Zend/zend_compile.c if (CG(has_bracketed_namespaces) && CG(in_namespace)) { CG 5472 Zend/zend_compile.c if (CG(in_namespace)) { CG 5480 Zend/zend_compile.c zend_stack_push(&CG(object_stack), object, sizeof(znode)); CG 5489 Zend/zend_compile.c zend_stack_top(&CG(object_stack), (void **) &tmp); CG 5492 Zend/zend_compile.c zend_stack_del_top(&CG(object_stack)); CG 5501 Zend/zend_compile.c new_token->u.op.opline_num = get_next_op_number(CG(active_op_array)); CG 5502 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 5504 Zend/zend_compile.c opline->extended_value = CG(context).nested_calls; CG 5506 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 5510 Zend/zend_compile.c zend_stack_push(&CG(function_call_stack), (void *) &ptr, sizeof(unsigned char *)); CG 5511 Zend/zend_compile.c if (++CG(context).nested_calls > CG(active_op_array)->nested_calls) { CG 5512 Zend/zend_compile.c CG(active_op_array)->nested_calls = CG(context).nested_calls; CG 5524 Zend/zend_compile.c CG(active_op_array)->opcodes[new_token->u.op.opline_num].op2.opline_num = get_next_op_number(CG(active_op_array)); CG 5525 Zend/zend_compile.c GET_NODE(result, CG(active_op_array)->opcodes[new_token->u.op.opline_num].result); CG 5563 Zend/zend_compile.c !(CG(compiler_options) & ZEND_COMPILE_NO_CONSTANT_SUBSTITUTION) && CG 5619 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 5622 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 5625 Zend/zend_compile.c opline->op1.constant = zend_add_class_name_literal(CG(active_op_array), &constant_container->u.constant TSRMLS_CC); CG 5670 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 5673 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 5680 Zend/zend_compile.c opline->op2.constant = zend_add_const_name_literal(CG(active_op_array), &constant_name->u.constant, 0 TSRMLS_CC); CG 5683 Zend/zend_compile.c if (CG(current_namespace)) { CG 5685 Zend/zend_compile.c opline->op2.constant = zend_add_const_name_literal(CG(active_op_array), &constant_name->u.constant, 1 TSRMLS_CC); CG 5687 Zend/zend_compile.c opline->op2.constant = zend_add_const_name_literal(CG(active_op_array), &constant_name->u.constant, 0 TSRMLS_CC); CG 5698 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 5715 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 5717 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 5725 Zend/zend_compile.c opline->op2.num = CG(context).nested_calls; CG 5728 Zend/zend_compile.c if (CG(context).nested_calls + 1 > CG(active_op_array)->nested_calls) { CG 5729 Zend/zend_compile.c CG(active_op_array)->nested_calls = CG(context).nested_calls + 1; CG 5731 Zend/zend_compile.c if (CG(context).used_stack + 2 > CG(active_op_array)->used_stack) { CG 5732 Zend/zend_compile.c CG(active_op_array)->used_stack = CG(context).used_stack + 2; CG 5739 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 5742 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 5774 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 5849 Zend/zend_compile.c zend_llist_copy(&lle.dimensions, &CG(dimension_llist)); CG 5850 Zend/zend_compile.c zend_llist_prepend_element(&CG(list_llist), &lle); CG 5852 Zend/zend_compile.c (*((int *)CG(dimension_llist).tail->data))++; CG 5859 Zend/zend_compile.c zend_llist_add_element(&CG(dimension_llist), ¤t_dimension); CG 5865 Zend/zend_compile.c zend_llist_remove_tail(&CG(dimension_llist)); CG 5866 Zend/zend_compile.c (*((int *)CG(dimension_llist).tail->data))++; CG 5872 Zend/zend_compile.c zend_stack_push(&CG(list_stack), &CG(list_llist), sizeof(zend_llist)); CG 5873 Zend/zend_compile.c zend_stack_push(&CG(list_stack), &CG(dimension_llist), sizeof(zend_llist)); CG 5874 Zend/zend_compile.c zend_llist_init(&CG(list_llist), sizeof(list_llist_element), NULL, 0); CG 5875 Zend/zend_compile.c zend_llist_init(&CG(dimension_llist), sizeof(int), NULL, 0); CG 5887 Zend/zend_compile.c le = CG(list_llist).head; CG 5892 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 5913 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 5926 Zend/zend_compile.c zend_llist_destroy(&CG(dimension_llist)); CG 5927 Zend/zend_compile.c zend_llist_destroy(&CG(list_llist)); CG 5933 Zend/zend_compile.c zend_stack_top(&CG(list_stack), (void **) &p); CG 5934 Zend/zend_compile.c CG(dimension_llist) = *p; CG 5935 Zend/zend_compile.c zend_stack_del_top(&CG(list_stack)); CG 5936 Zend/zend_compile.c zend_stack_top(&CG(list_stack), (void **) &p); CG 5937 Zend/zend_compile.c CG(list_llist) = *p; CG 5938 Zend/zend_compile.c zend_stack_del_top(&CG(list_stack)); CG 5988 Zend/zend_compile.c if (!CG(active_op_array)->static_variables) { CG 5989 Zend/zend_compile.c if (CG(active_op_array)->scope) { CG 5990 Zend/zend_compile.c CG(active_op_array)->scope->ce_flags |= ZEND_HAS_STATIC_IN_METHODS; CG 5992 Zend/zend_compile.c ALLOC_HASHTABLE(CG(active_op_array)->static_variables); CG 5993 Zend/zend_compile.c zend_hash_init(CG(active_op_array)->static_variables, 2, NULL, ZVAL_PTR_DTOR, 0); CG 5995 Zend/zend_compile.c zend_hash_update(CG(active_op_array)->static_variables, varname->u.constant.value.str.val, varname->u.constant.value.str.len+1, &tmp, sizeof(zval *), NULL); CG 6003 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6006 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 6029 Zend/zend_compile.c CG(active_op_array)->opcodes[CG(active_op_array)->last-1].result_type |= EXT_TYPE_UNUSED; CG 6065 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6068 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 6083 Zend/zend_compile.c CG(active_op_array)->opcodes[CG(active_op_array)->last-1].result_type |= EXT_TYPE_UNUSED; CG 6089 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6093 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 6105 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6109 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 6131 Zend/zend_compile.c if (CG(active_op_array)->scope && CG(active_op_array)->this_var == -1) { CG 6132 Zend/zend_compile.c CG(active_op_array)->this_var = lookup_cv(CG(active_op_array), estrndup("this", sizeof("this")-1), sizeof("this")-1, THIS_HASHVAL TSRMLS_CC); CG 6144 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6151 Zend/zend_compile.c last_op = &CG(active_op_array)->opcodes[get_next_op_number(CG(active_op_array))-1]; CG 6190 Zend/zend_compile.c last_op = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6194 Zend/zend_compile.c last_op->result.var = get_temporary_variable(CG(active_op_array)); CG 6197 Zend/zend_compile.c last_op = &CG(active_op_array)->opcodes[get_next_op_number(CG(active_op_array))-1]; CG 6220 Zend/zend_compile.c int last_op_number = get_next_op_number(CG(active_op_array)); CG 6224 Zend/zend_compile.c opline = &CG(active_op_array)->opcodes[last_op_number-1]; CG 6234 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6237 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 6259 Zend/zend_compile.c open_brackets_token->u.op.opline_num = get_next_op_number(CG(active_op_array)); CG 6263 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6272 Zend/zend_compile.c open_brackets_token->u.op.opline_num = get_next_op_number(CG(active_op_array)); CG 6276 Zend/zend_compile.c foreach_token->u.op.opline_num = get_next_op_number(CG(active_op_array)); CG 6278 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6283 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 6289 Zend/zend_compile.c zend_stack_push(&CG(foreach_copy_stack), (void *) &dummy_opline, sizeof(zend_op)); CG 6292 Zend/zend_compile.c as_token->u.op.opline_num = get_next_op_number(CG(active_op_array)); CG 6294 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6297 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 6302 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6316 Zend/zend_compile.c opline = &CG(active_op_array)->opcodes[as_token->u.op.opline_num]; CG 6343 Zend/zend_compile.c CG(active_op_array)->opcodes[foreach_token->u.op.opline_num].extended_value |= ZEND_FE_RESET_REFERENCE; CG 6345 Zend/zend_compile.c zend_op *fetch = &CG(active_op_array)->opcodes[foreach_token->u.op.opline_num]; CG 6346 Zend/zend_compile.c zend_op *end = &CG(active_op_array)->opcodes[open_brackets_token->u.op.opline_num]; CG 6366 Zend/zend_compile.c if (!CG(list_llist).head) { CG 6385 Zend/zend_compile.c opline = &CG(active_op_array)->opcodes[as_token->u.op.opline_num+1]; CG 6387 Zend/zend_compile.c opline->result.opline_num = get_temporary_variable(CG(active_op_array)); CG 6395 Zend/zend_compile.c INC_BPC(CG(active_op_array)); CG 6402 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6409 Zend/zend_compile.c CG(active_op_array)->opcodes[foreach_token->u.op.opline_num].op2.opline_num = get_next_op_number(CG(active_op_array)); /* FE_RESET */ CG 6410 Zend/zend_compile.c CG(active_op_array)->opcodes[as_token->u.op.opline_num].op2.opline_num = get_next_op_number(CG(active_op_array)); /* FE_FETCH */ CG 6414 Zend/zend_compile.c zend_stack_top(&CG(foreach_copy_stack), (void **) &container_ptr); CG 6416 Zend/zend_compile.c zend_stack_del_top(&CG(foreach_copy_stack)); CG 6418 Zend/zend_compile.c DEC_BPC(CG(active_op_array)); CG 6424 Zend/zend_compile.c zend_stack_push(&CG(declare_stack), &CG(declarables), sizeof(zend_declarables)); CG 6432 Zend/zend_compile.c CG(declarables).ticks = val->u.constant; CG 6445 Zend/zend_compile.c int num = CG(active_op_array)->last; CG 6448 Zend/zend_compile.c (CG(active_op_array)->opcodes[num-1].opcode == ZEND_EXT_STMT || CG 6449 Zend/zend_compile.c CG(active_op_array)->opcodes[num-1].opcode == ZEND_TICKS)) { CG 6458 Zend/zend_compile.c if (CG(multibyte)) { CG 6462 Zend/zend_compile.c CG(encoding_declared) = 1; CG 6495 Zend/zend_compile.c zend_stack_top(&CG(declare_stack), (void **) &declarables); CG 6497 Zend/zend_compile.c if ((get_next_op_number(CG(active_op_array)) - declare_token->u.op.opline_num) - ((Z_LVAL(CG(declarables).ticks))?1:0)) { CG 6498 Zend/zend_compile.c CG(declarables) = *declarables; CG 6505 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6519 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6523 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 6532 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6542 Zend/zend_compile.c int op_number = get_next_op_number(CG(active_op_array)); CG 6543 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6552 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 6560 Zend/zend_compile.c INC_BPC(CG(active_op_array)); CG 6566 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6571 Zend/zend_compile.c CG(active_op_array)->opcodes[jmp_token->u.op.opline_num].opcode = ZEND_JMP_SET_VAR; CG 6572 Zend/zend_compile.c CG(active_op_array)->opcodes[jmp_token->u.op.opline_num].result_type = IS_VAR; CG 6587 Zend/zend_compile.c CG(active_op_array)->opcodes[jmp_token->u.op.opline_num].op2.opline_num = get_next_op_number(CG(active_op_array)); CG 6589 Zend/zend_compile.c DEC_BPC(CG(active_op_array)); CG 6595 Zend/zend_compile.c int jmpz_op_number = get_next_op_number(CG(active_op_array)); CG 6598 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6606 Zend/zend_compile.c INC_BPC(CG(active_op_array)); CG 6612 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6614 Zend/zend_compile.c CG(active_op_array)->opcodes[qm_token->u.op.opline_num].op2.opline_num = get_next_op_number(CG(active_op_array))+1; /* jmp over the ZEND_JMP */ CG 6623 Zend/zend_compile.c opline->result.var = get_temporary_variable(CG(active_op_array)); CG 6628 Zend/zend_compile.c colon_token->u.op.opline_num = get_next_op_number(CG(active_op_array)); CG 6630 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6639 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6644 Zend/zend_compile.c CG(active_op_array)->opcodes[colon_token->u.op.opline_num - 1].opcode = ZEND_QM_ASSIGN_VAR; CG 6645 Zend/zend_compile.c CG(active_op_array)->opcodes[colon_token->u.op.opline_num - 1].result_type = IS_VAR; CG 6657 Zend/zend_compile.c CG(active_op_array)->opcodes[colon_token->u.op.opline_num].op1.opline_num = get_next_op_number(CG(active_op_array)); CG 6661 Zend/zend_compile.c DEC_BPC(CG(active_op_array)); CG 6669 Zend/zend_compile.c if (!(CG(compiler_options) & ZEND_COMPILE_EXTENDED_INFO)) { CG 6673 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6685 Zend/zend_compile.c if (!(CG(compiler_options) & ZEND_COMPILE_EXTENDED_INFO)) { CG 6689 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6701 Zend/zend_compile.c if (!(CG(compiler_options) & ZEND_COMPILE_EXTENDED_INFO)) { CG 6705 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6715 Zend/zend_compile.c zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 6720 Zend/zend_compile.c opline->extended_value = Z_LVAL(CG(declarables).ticks); CG 6729 Zend/zend_compile.c if (zend_hash_quick_find(CG(auto_globals), name, name_len+1, hash, (void **) &auto_global)==SUCCESS) { CG 6754 Zend/zend_compile.c return zend_hash_add(CG(auto_globals), name, name_len+1, &auto_global, sizeof(zend_auto_global), NULL); CG 6773 Zend/zend_compile.c zend_hash_apply(CG(auto_globals), (apply_func_t) zend_auto_global_init TSRMLS_CC); CG 6781 Zend/zend_compile.c if (CG(increment_lineno)) { CG 6782 Zend/zend_compile.c CG(zend_lineno)++; CG 6783 Zend/zend_compile.c CG(increment_lineno) = 0; CG 6798 Zend/zend_compile.c CG(increment_lineno) = 1; CG 6800 Zend/zend_compile.c if (CG(has_bracketed_namespaces) && !CG(in_namespace)) { CG 6832 Zend/zend_compile.c int n = zend_hash_num_elements(CG(class_table)); CG 6834 Zend/zend_compile.c if (CG(static_members_table) && n >= CG(last_static_member)) { CG 6836 Zend/zend_compile.c CG(last_static_member) = n+1; CG 6837 Zend/zend_compile.c CG(static_members_table) = realloc(CG(static_members_table), (n+1)*sizeof(zval**)); CG 6838 Zend/zend_compile.c CG(static_members_table)[n] = NULL; CG 6921 Zend/zend_compile.c if (CG(current_namespace)) { CG 6926 Zend/zend_compile.c tmp.u.constant = *CG(current_namespace); CG 6947 Zend/zend_compile.c if (!CG(has_bracketed_namespaces)) { CG 6948 Zend/zend_compile.c if (CG(current_namespace)) { CG 6958 Zend/zend_compile.c } else if (CG(current_namespace) || CG(in_namespace)) { CG 6963 Zend/zend_compile.c if (((!with_bracket && !CG(current_namespace)) || (with_bracket && !CG(has_bracketed_namespaces))) && CG(active_op_array)->last > 0) { CG 6965 Zend/zend_compile.c int num = CG(active_op_array)->last; CG 6967 Zend/zend_compile.c (CG(active_op_array)->opcodes[num-1].opcode == ZEND_EXT_STMT || CG 6968 Zend/zend_compile.c CG(active_op_array)->opcodes[num-1].opcode == ZEND_TICKS)) { CG 6976 Zend/zend_compile.c CG(in_namespace) = 1; CG 6978 Zend/zend_compile.c CG(has_bracketed_namespaces) = 1; CG 6991 Zend/zend_compile.c if (CG(current_namespace)) { CG 6992 Zend/zend_compile.c zval_dtor(CG(current_namespace)); CG 6994 Zend/zend_compile.c ALLOC_ZVAL(CG(current_namespace)); CG 6996 Zend/zend_compile.c *CG(current_namespace) = name->u.constant; CG 6998 Zend/zend_compile.c if (CG(current_namespace)) { CG 6999 Zend/zend_compile.c zval_dtor(CG(current_namespace)); CG 7000 Zend/zend_compile.c FREE_ZVAL(CG(current_namespace)); CG 7001 Zend/zend_compile.c CG(current_namespace) = NULL; CG 7005 Zend/zend_compile.c if (CG(current_import)) { CG 7006 Zend/zend_compile.c zend_hash_destroy(CG(current_import)); CG 7007 Zend/zend_compile.c efree(CG(current_import)); CG 7008 Zend/zend_compile.c CG(current_import) = NULL; CG 7011 Zend/zend_compile.c if (CG(doc_comment)) { CG 7012 Zend/zend_compile.c efree(CG(doc_comment)); CG 7013 Zend/zend_compile.c CG(doc_comment) = NULL; CG 7014 Zend/zend_compile.c CG(doc_comment_len) = 0; CG 7026 Zend/zend_compile.c if (!CG(current_import)) { CG 7027 Zend/zend_compile.c CG(current_import) = emalloc(sizeof(HashTable)); CG 7028 Zend/zend_compile.c zend_hash_init(CG(current_import), 0, NULL, ZVAL_PTR_DTOR, 0); CG 7047 Zend/zend_compile.c warn = !CG(current_namespace); CG 7060 Zend/zend_compile.c if (CG(current_namespace)) { CG 7062 Zend/zend_compile.c char *c_ns_name = emalloc(Z_STRLEN_P(CG(current_namespace)) + 1 + Z_STRLEN_P(name) + 1); CG 7064 Zend/zend_compile.c zend_str_tolower_copy(c_ns_name, Z_STRVAL_P(CG(current_namespace)), Z_STRLEN_P(CG(current_namespace))); CG 7065 Zend/zend_compile.c c_ns_name[Z_STRLEN_P(CG(current_namespace))] = '\\'; CG 7066 Zend/zend_compile.c memcpy(c_ns_name+Z_STRLEN_P(CG(current_namespace))+1, lcname, Z_STRLEN_P(name)+1); CG 7067 Zend/zend_compile.c if (zend_hash_exists(CG(class_table), c_ns_name, Z_STRLEN_P(CG(current_namespace)) + 1 + Z_STRLEN_P(name)+1)) { CG 7070 Zend/zend_compile.c if (Z_STRLEN_P(ns) != Z_STRLEN_P(CG(current_namespace)) + 1 + Z_STRLEN_P(name) || CG 7077 Zend/zend_compile.c } else if (zend_hash_find(CG(class_table), lcname, Z_STRLEN_P(name)+1, (void**)&pce) == SUCCESS && CG 7079 Zend/zend_compile.c (*pce)->info.user.filename == CG(compiled_filename)) { CG 7089 Zend/zend_compile.c if (zend_hash_add(CG(current_import), lcname, Z_STRLEN_P(name)+1, &ns, sizeof(zval*), NULL) != SUCCESS) { CG 7115 Zend/zend_compile.c if (CG(current_namespace)) { CG 7120 Zend/zend_compile.c tmp.u.constant = *CG(current_namespace); CG 7126 Zend/zend_compile.c opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 7136 Zend/zend_compile.c if (CG(has_bracketed_namespaces) && !CG(in_namespace)) { CG 7144 Zend/zend_compile.c CG(in_namespace) = 0; CG 7145 Zend/zend_compile.c if (CG(current_namespace)) { CG 7146 Zend/zend_compile.c zval_dtor(CG(current_namespace)); CG 7147 Zend/zend_compile.c FREE_ZVAL(CG(current_namespace)); CG 7148 Zend/zend_compile.c CG(current_namespace) = NULL; CG 7150 Zend/zend_compile.c if (CG(current_import)) { CG 7151 Zend/zend_compile.c zend_hash_destroy(CG(current_import)); CG 7152 Zend/zend_compile.c efree(CG(current_import)); CG 7153 Zend/zend_compile.c CG(current_import) = NULL; CG 7160 Zend/zend_compile.c CG(has_bracketed_namespaces) = 0; CG 39 Zend/zend_compile.h #define INC_BPC(op_array) if (op_array->fn_flags & ZEND_ACC_INTERACTIVE) { (CG(context).backpatch_count++); } CG 40 Zend/zend_compile.h #define DEC_BPC(op_array) if (op_array->fn_flags & ZEND_ACC_INTERACTIVE) { (CG(context).backpatch_count--); } CG 41 Zend/zend_compile.h #define HANDLE_INTERACTIVE() if (CG(active_op_array)->fn_flags & ZEND_ACC_INTERACTIVE) { execute_new_code(TSRMLS_C); } CG 42 Zend/zend_compile.h #define DO_TICKS() if (Z_LVAL(CG(declarables).ticks)) { zend_do_ticks(TSRMLS_C); } CG 46 Zend/zend_compile.h if (CG(doc_comment)) { \ CG 47 Zend/zend_compile.h efree(CG(doc_comment)); \ CG 48 Zend/zend_compile.h CG(doc_comment) = NULL; \ CG 50 Zend/zend_compile.h CG(doc_comment_len) = 0; \ CG 344 Zend/zend_constants.c scope = CG(active_class_entry); CG 147 Zend/zend_execute_API.c EG(function_table) = CG(function_table); CG 148 Zend/zend_execute_API.c EG(class_table) = CG(class_table); CG 1162 Zend/zend_execute_API.c original_compiler_options = CG(compiler_options); CG 1163 Zend/zend_execute_API.c CG(compiler_options) = ZEND_COMPILE_DEFAULT_FOR_EVAL; CG 1165 Zend/zend_execute_API.c CG(compiler_options) = original_compiler_options; CG 1171 Zend/zend_execute_API.c int orig_interactive = CG(interactive); CG 1179 Zend/zend_execute_API.c CG(interactive) = 0; CG 1189 Zend/zend_execute_API.c CG(interactive) = orig_interactive; CG 1250 Zend/zend_execute_API.c if (!(CG(active_op_array)->fn_flags & ZEND_ACC_INTERACTIVE) CG 1251 Zend/zend_execute_API.c || CG(context).backpatch_count>0 CG 1252 Zend/zend_execute_API.c || CG(active_op_array)->function_name CG 1253 Zend/zend_execute_API.c || CG(active_op_array)->type!=ZEND_USER_FUNCTION) { CG 1257 Zend/zend_execute_API.c ret_opline = get_next_op(CG(active_op_array) TSRMLS_CC); CG 1260 Zend/zend_execute_API.c ret_opline->op1.constant = zend_add_literal(CG(active_op_array), &EG(uninitialized_zval) TSRMLS_CC); CG 1264 Zend/zend_execute_API.c EG(start_op) = CG(active_op_array)->opcodes; CG 1268 Zend/zend_execute_API.c end=CG(active_op_array)->opcodes+CG(active_op_array)->last; CG 1272 Zend/zend_execute_API.c opline->op1.zv = &CG(active_op_array)->literals[opline->op1.constant].constant; CG 1275 Zend/zend_execute_API.c opline->op2.zv = &CG(active_op_array)->literals[opline->op2.constant].constant; CG 1280 Zend/zend_execute_API.c zend_resolve_goto_label(CG(active_op_array), opline, 1 TSRMLS_CC); CG 1284 Zend/zend_execute_API.c opline->op1.jmp_addr = &CG(active_op_array)->opcodes[opline->op1.opline_num]; CG 1292 Zend/zend_execute_API.c opline->op2.jmp_addr = &CG(active_op_array)->opcodes[opline->op2.opline_num]; CG 1302 Zend/zend_execute_API.c EG(active_op_array) = CG(active_op_array); CG 1303 Zend/zend_execute_API.c orig_interactive = CG(interactive); CG 1304 Zend/zend_execute_API.c CG(interactive) = 0; CG 1305 Zend/zend_execute_API.c zend_execute(CG(active_op_array) TSRMLS_CC); CG 1306 Zend/zend_execute_API.c CG(interactive) = orig_interactive; CG 1312 Zend/zend_execute_API.c CG(active_op_array)->last -= 1; /* get rid of that ZEND_RETURN */ CG 1313 Zend/zend_execute_API.c EG(start_op) = CG(active_op_array)->opcodes+CG(active_op_array)->last; CG 127 Zend/zend_generators.c if (CG(unclean_shutdown)) { CG 34 Zend/zend_globals_macros.h # define CG(v) TSRMG(compiler_globals_id, zend_compiler_globals *, v) CG 37 Zend/zend_globals_macros.h # define CG(v) (compiler_globals.v) CG 119 Zend/zend_ini_parser.c #define ZEND_INI_PARSER_CB (CG(ini_parser_param))->ini_parser_cb CG 120 Zend/zend_ini_parser.c #define ZEND_INI_PARSER_ARG (CG(ini_parser_param))->arg CG 256 Zend/zend_ini_parser.c if (CG(ini_parser_unbuffered_errors)) { CG 277 Zend/zend_ini_parser.c CG(ini_parser_param) = &ini_parser_param; CG 283 Zend/zend_ini_parser.c CG(ini_parser_unbuffered_errors) = unbuffered_errors; CG 306 Zend/zend_ini_parser.c CG(ini_parser_param) = &ini_parser_param; CG 312 Zend/zend_ini_parser.c CG(ini_parser_unbuffered_errors) = unbuffered_errors; CG 47 Zend/zend_ini_parser.y #define ZEND_INI_PARSER_CB (CG(ini_parser_param))->ini_parser_cb CG 48 Zend/zend_ini_parser.y #define ZEND_INI_PARSER_ARG (CG(ini_parser_param))->arg CG 184 Zend/zend_ini_parser.y if (CG(ini_parser_unbuffered_errors)) { CG 205 Zend/zend_ini_parser.y CG(ini_parser_param) = &ini_parser_param; CG 211 Zend/zend_ini_parser.y CG(ini_parser_unbuffered_errors) = unbuffered_errors; CG 234 Zend/zend_ini_parser.y CG(ini_parser_param) = &ini_parser_param; CG 240 Zend/zend_ini_parser.y CG(ini_parser_unbuffered_errors) = unbuffered_errors; CG 3711 Zend/zend_language_parser.c { (yyvsp[(1) - (1)]).u.op.opline_num = get_next_op_number(CG(active_op_array)); } CG 3726 Zend/zend_language_parser.c { (yyvsp[(1) - (1)]).u.op.opline_num = get_next_op_number(CG(active_op_array)); zend_do_do_while_begin(TSRMLS_C); } CG 3731 Zend/zend_language_parser.c { (yyvsp[(4) - (4)]).u.op.opline_num = get_next_op_number(CG(active_op_array)); } CG 3741 Zend/zend_language_parser.c { zend_do_free(&(yyvsp[(3) - (4)]) TSRMLS_CC); (yyvsp[(4) - (4)]).u.op.opline_num = get_next_op_number(CG(active_op_array)); } CG 3851 Zend/zend_language_parser.c { (yyvsp[(1) - (1)]).u.op.opline_num = get_next_op_number(CG(active_op_array)); zend_do_declare_begin(TSRMLS_C); } CG 3951 Zend/zend_language_parser.c { (yyval).u.op.opline_num = get_next_op_number(CG(active_op_array)); } CG 4021 Zend/zend_language_parser.c { (yyval).u.op.opline_num = CG(zend_lineno); (yyval).EA = 0; } CG 4026 Zend/zend_language_parser.c { (yyval).u.op.opline_num = CG(zend_lineno); (yyval).EA = ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; } CG 4031 Zend/zend_language_parser.c { (yyval).u.op.opline_num = CG(zend_lineno); (yyval).EA = ZEND_ACC_TRAIT; } CG 4036 Zend/zend_language_parser.c { (yyval).u.op.opline_num = CG(zend_lineno); (yyval).EA = ZEND_ACC_FINAL_CLASS; } CG 4051 Zend/zend_language_parser.c { (yyval).u.op.opline_num = CG(zend_lineno); (yyval).EA = ZEND_ACC_INTERFACE; } CG 4321 Zend/zend_language_parser.c { CG(access_type) = Z_LVAL((yyvsp[(1) - (1)]).u.constant); } CG 4466 Zend/zend_language_parser.c { zend_do_declare_property(&(yyvsp[(3) - (3)]), NULL, CG(access_type) TSRMLS_CC); } CG 4471 Zend/zend_language_parser.c { zend_do_declare_property(&(yyvsp[(3) - (5)]), &(yyvsp[(5) - (5)]), CG(access_type) TSRMLS_CC); } CG 4476 Zend/zend_language_parser.c { zend_do_declare_property(&(yyvsp[(1) - (1)]), NULL, CG(access_type) TSRMLS_CC); } CG 4481 Zend/zend_language_parser.c { zend_do_declare_property(&(yyvsp[(1) - (3)]), &(yyvsp[(3) - (3)]), CG(access_type) TSRMLS_CC); } CG 5066 Zend/zend_language_parser.c { (yyval).u.op.opline_num = CG(zend_lineno); } CG 6220 Zend/zend_language_parser.c if (CG(parse_error) == 0) { CG 6225 Zend/zend_language_parser.c CG(parse_error) = 1; CG 286 Zend/zend_language_parser.y | T_WHILE { $1.u.op.opline_num = get_next_op_number(CG(active_op_array)); } parenthesis_expr { zend_do_while_cond(&$3, &$$ TSRMLS_CC); } while_statement { zend_do_while_end(&$1, &$4 TSRMLS_CC); } CG 287 Zend/zend_language_parser.y | T_DO { $1.u.op.opline_num = get_next_op_number(CG(active_op_array)); zend_do_do_while_begin(TSRMLS_C); } statement T_WHILE { $4.u.op.opline_num = get_next_op_number(CG(active_op_array)); } parenthesis_expr ';' { zend_do_do_while_end(&$1, &$4, &$6 TSRMLS_CC); } CG 291 Zend/zend_language_parser.y ';' { zend_do_free(&$3 TSRMLS_CC); $4.u.op.opline_num = get_next_op_number(CG(active_op_array)); } CG 320 Zend/zend_language_parser.y | T_DECLARE { $1.u.op.opline_num = get_next_op_number(CG(active_op_array)); zend_do_declare_begin(TSRMLS_C); } '(' declare_list ')' declare_statement { zend_do_declare_end(&$1 TSRMLS_CC); } CG 353 Zend/zend_language_parser.y T_CATCH '(' fully_qualified_class_name { $$.u.op.opline_num = get_next_op_number(CG(active_op_array)); } T_VARIABLE ')' { zend_do_begin_catch(&$1, &$3, &$5, NULL TSRMLS_CC); } '{' inner_statement_list '}' { zend_do_end_catch(&$1 TSRMLS_CC); } CG 402 Zend/zend_language_parser.y T_CLASS { $$.u.op.opline_num = CG(zend_lineno); $$.EA = 0; } CG 403 Zend/zend_language_parser.y | T_ABSTRACT T_CLASS { $$.u.op.opline_num = CG(zend_lineno); $$.EA = ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; } CG 404 Zend/zend_language_parser.y | T_TRAIT { $$.u.op.opline_num = CG(zend_lineno); $$.EA = ZEND_ACC_TRAIT; } CG 405 Zend/zend_language_parser.y | T_FINAL T_CLASS { $$.u.op.opline_num = CG(zend_lineno); $$.EA = ZEND_ACC_FINAL_CLASS; } CG 414 Zend/zend_language_parser.y T_INTERFACE { $$.u.op.opline_num = CG(zend_lineno); $$.EA = ZEND_ACC_INTERFACE; } CG 590 Zend/zend_language_parser.y variable_modifiers { CG(access_type) = Z_LVAL($1.u.constant); } class_variable_declaration ';' CG 685 Zend/zend_language_parser.y class_variable_declaration ',' T_VARIABLE { zend_do_declare_property(&$3, NULL, CG(access_type) TSRMLS_CC); } CG 686 Zend/zend_language_parser.y | class_variable_declaration ',' T_VARIABLE '=' static_scalar { zend_do_declare_property(&$3, &$5, CG(access_type) TSRMLS_CC); } CG 687 Zend/zend_language_parser.y | T_VARIABLE { zend_do_declare_property(&$1, NULL, CG(access_type) TSRMLS_CC); } CG 688 Zend/zend_language_parser.y | T_VARIABLE '=' static_scalar { zend_do_declare_property(&$1, &$3, CG(access_type) TSRMLS_CC); } CG 837 Zend/zend_language_parser.y T_FUNCTION { $$.u.op.opline_num = CG(zend_lineno); } CG 1231 Zend/zend_language_parser.y if (CG(parse_error) == 0) { CG 1236 Zend/zend_language_parser.y CG(parse_error) = 1; CG 104 Zend/zend_language_scanner.c CG(zend_lineno)++; \ CG 113 Zend/zend_language_scanner.c CG(zend_lineno)++; \ CG 118 Zend/zend_language_scanner.c #define SET_DOUBLE_QUOTES_SCANNED_LENGTH(len) CG(doc_comment_len) = (len) CG 119 Zend/zend_language_scanner.c #define GET_DOUBLE_QUOTES_SCANNED_LENGTH() CG(doc_comment_len) CG 182 Zend/zend_language_scanner.c CG(parse_error) = 0; CG 183 Zend/zend_language_scanner.c CG(doc_comment) = NULL; CG 184 Zend/zend_language_scanner.c CG(doc_comment_len) = 0; CG 195 Zend/zend_language_scanner.c CG(parse_error) = 0; CG 220 Zend/zend_language_scanner.c lex_state->lineno = CG(zend_lineno); CG 249 Zend/zend_language_scanner.c CG(zend_lineno) = lex_state->lineno; CG 269 Zend/zend_language_scanner.c zend_llist_del_element(&CG(open_files), file_handle, (int (*)(void *, void *)) zend_compare_file_handles); CG 416 Zend/zend_language_scanner.c if (CG(detect_unicode)) { CG 426 Zend/zend_language_scanner.c if (!CG(script_encoding_list) || !CG(script_encoding_list_size)) { CG 431 Zend/zend_language_scanner.c if (CG(script_encoding_list_size) > 1) { CG 432 Zend/zend_language_scanner.c return zend_multibyte_encoding_detector(LANG_SCNG(script_org), LANG_SCNG(script_org_size), CG(script_encoding_list), CG(script_encoding_list_size) TSRMLS_CC); CG 435 Zend/zend_language_scanner.c return CG(script_encoding_list)[0]; CG 486 Zend/zend_language_scanner.c if (CG(start_lineno) == 2 && file_handle->type == ZEND_HANDLE_FP && file_handle->handle.fp) { CG 496 Zend/zend_language_scanner.c zend_llist_add_element(&CG(open_files), file_handle); CG 498 Zend/zend_language_scanner.c zend_file_handle *fh = (zend_file_handle*)zend_llist_get_last(&CG(open_files)); CG 509 Zend/zend_language_scanner.c if (CG(multibyte)) { CG 541 Zend/zend_language_scanner.c if (CG(start_lineno)) { CG 542 Zend/zend_language_scanner.c CG(zend_lineno) = CG(start_lineno); CG 543 Zend/zend_language_scanner.c CG(start_lineno) = 0; CG 545 Zend/zend_language_scanner.c CG(zend_lineno) = 1; CG 549 Zend/zend_language_scanner.c CG(increment_lineno) = 0; CG 559 Zend/zend_language_scanner.c zend_op_array *original_active_op_array = CG(active_op_array); CG 564 Zend/zend_language_scanner.c zend_bool original_in_compilation = CG(in_compilation); CG 586 Zend/zend_language_scanner.c CG(in_compilation) = 1; CG 587 Zend/zend_language_scanner.c CG(active_op_array) = op_array; CG 588 Zend/zend_language_scanner.c zend_stack_push(&CG(context_stack), (void *) &CG(context), sizeof(CG(context))); CG 592 Zend/zend_language_scanner.c CG(in_compilation) = original_in_compilation; CG 600 Zend/zend_language_scanner.c CG(active_op_array) = original_active_op_array; CG 677 Zend/zend_language_scanner.c if (CG(multibyte)) { CG 697 Zend/zend_language_scanner.c CG(zend_lineno) = 1; CG 698 Zend/zend_language_scanner.c CG(increment_lineno) = 0; CG 730 Zend/zend_language_scanner.c zend_op_array *original_active_op_array = CG(active_op_array); CG 734 Zend/zend_language_scanner.c zend_bool original_in_compilation = CG(in_compilation); CG 741 Zend/zend_language_scanner.c CG(in_compilation) = 1; CG 753 Zend/zend_language_scanner.c zend_bool orig_interactive = CG(interactive); CG 755 Zend/zend_language_scanner.c CG(interactive) = 0; CG 757 Zend/zend_language_scanner.c CG(interactive) = orig_interactive; CG 758 Zend/zend_language_scanner.c CG(active_op_array) = op_array; CG 759 Zend/zend_language_scanner.c zend_stack_push(&CG(context_stack), (void *) &CG(context), sizeof(CG(context))); CG 770 Zend/zend_language_scanner.c CG(active_op_array) = original_active_op_array; CG 771 Zend/zend_language_scanner.c CG(unclean_shutdown)=1; CG 777 Zend/zend_language_scanner.c CG(active_op_array) = original_active_op_array; CG 785 Zend/zend_language_scanner.c CG(in_compilation) = original_in_compilation; CG 986 Zend/zend_language_scanner.c CG(zend_lineno)++; CG 1124 Zend/zend_language_scanner.c if (CG(short_tags) || !strncasecmp((char*)YYCURSOR + 1, "php", 3) || (*(YYCURSOR + 1) == '=')) { /* Assume [ \t\n\r] follows "php" */ CG 1129 Zend/zend_language_scanner.c if (CG(asp_tags)) { CG 1188 Zend/zend_language_scanner.c if (CG(short_tags)) { CG 1207 Zend/zend_language_scanner.c if (CG(asp_tags)) { CG 1449 Zend/zend_language_scanner.c if (CG(asp_tags)) { CG 2089 Zend/zend_language_scanner.c CG(increment_lineno) = 1; /* For newline before label */ CG 3019 Zend/zend_language_scanner.c CG(zend_lineno)++; CG 3022 Zend/zend_language_scanner.c if (!CG(asp_tags)) { CG 3103 Zend/zend_language_scanner.c CG(zend_lineno)++; CG 3528 Zend/zend_language_scanner.c if (CG(asp_tags)) { CG 3613 Zend/zend_language_scanner.c zend_error(E_COMPILE_WARNING, "Unterminated comment starting line %d", CG(zend_lineno)); CG 3620 Zend/zend_language_scanner.c CG(doc_comment) = estrndup(yytext, yyleng); CG 3621 Zend/zend_language_scanner.c CG(doc_comment_len) = yyleng; CG 3907 Zend/zend_language_scanner.c CG(zend_lineno)++; CG 4198 Zend/zend_language_scanner.c if (CG(current_namespace)) { CG 4199 Zend/zend_language_scanner.c *zendlval = *CG(current_namespace); CG 4280 Zend/zend_language_scanner.c zendlval->value.lval = CG(zend_lineno); CG 4321 Zend/zend_language_scanner.c const char *class_name = CG(active_class_entry) ? CG(active_class_entry)->name : NULL; CG 4322 Zend/zend_language_scanner.c const char *func_name = CG(active_op_array)? CG(active_op_array)->function_name : NULL; CG 4395 Zend/zend_language_scanner.c if (CG(active_op_array)) { CG 4396 Zend/zend_language_scanner.c func_name = CG(active_op_array)->function_name; CG 4473 Zend/zend_language_scanner.c if (CG(active_class_entry) CG 4475 Zend/zend_language_scanner.c (CG(active_class_entry)->ce_flags & ZEND_ACC_TRAIT))) { CG 4476 Zend/zend_language_scanner.c trait_name = CG(active_class_entry)->name; CG 4523 Zend/zend_language_scanner.c if (CG(active_class_entry) CG 4525 Zend/zend_language_scanner.c (CG(active_class_entry)->ce_flags & ZEND_ACC_TRAIT))) { CG 4532 Zend/zend_language_scanner.c if (CG(active_class_entry)) { CG 4533 Zend/zend_language_scanner.c class_name = CG(active_class_entry)->name; CG 7558 Zend/zend_language_scanner.c CG(increment_lineno) = 1; /* For newline before label */ CG 170 Zend/zend_multibyte.c if (CG(script_encoding_list)) { CG 171 Zend/zend_multibyte.c free(CG(script_encoding_list)); CG 173 Zend/zend_multibyte.c CG(script_encoding_list) = encoding_list; CG 174 Zend/zend_multibyte.c CG(script_encoding_list_size) = encoding_list_size; CG 55 Zend/zend_opcode.c if (CG(interactive)) { CG 97 Zend/zend_opcode.c op_array->fn_flags = CG(interactive)?ZEND_ACC_INTERACTIVE:0; CG 188 Zend/zend_opcode.c CG(static_members_table)[(zend_intptr_t)(ce->static_members_table)] = NULL; CG 423 Zend/zend_opcode.c op->lineno = CG(zend_lineno); CG 432 Zend/zend_opcode.c if (next_op_num >= CG(context).opcodes_size) { CG 439 Zend/zend_opcode.c CG(context).opcodes_size *= 4; CG 440 Zend/zend_opcode.c op_array_alloc_ops(op_array, CG(context).opcodes_size); CG 501 Zend/zend_opcode.c CG(in_compilation) = 1; CG 502 Zend/zend_opcode.c CG(active_op_array) = op_array; CG 503 Zend/zend_opcode.c CG(zend_lineno) = op_array->opcodes[op_num].lineno; CG 509 Zend/zend_opcode.c CG(in_compilation) = 1; CG 510 Zend/zend_opcode.c CG(active_op_array) = op_array; CG 511 Zend/zend_opcode.c CG(zend_lineno) = op_array->opcodes[op_num].lineno; CG 730 Zend/zend_opcode.c if (CG(compiler_options) & ZEND_COMPILE_EXTENDED_INFO) { CG 733 Zend/zend_opcode.c if (CG(compiler_options) & ZEND_COMPILE_HANDLE_OP_ARRAY) { CG 737 Zend/zend_opcode.c if (!(op_array->fn_flags & ZEND_ACC_INTERACTIVE) && CG(context).vars_size != op_array->last_var) { CG 739 Zend/zend_opcode.c CG(context).vars_size = op_array->last_var; CG 741 Zend/zend_opcode.c if (!(op_array->fn_flags & ZEND_ACC_INTERACTIVE) && CG(context).opcodes_size != op_array->last) { CG 743 Zend/zend_opcode.c CG(context).opcodes_size = op_array->last; CG 745 Zend/zend_opcode.c if (!(op_array->fn_flags & ZEND_ACC_INTERACTIVE) && CG(context).literals_size != op_array->last_literal) { CG 747 Zend/zend_opcode.c CG(context).literals_size = op_array->last_literal; CG 781 Zend/zend_opcode.c CG(zend_lineno) = opline->lineno; CG 46 Zend/zend_string.c CG(interned_strings_start) = valloc(size); CG 48 Zend/zend_string.c CG(interned_strings_start) = malloc(size); CG 51 Zend/zend_string.c CG(interned_strings_top) = CG(interned_strings_start); CG 52 Zend/zend_string.c CG(interned_strings_snapshot_top) = CG(interned_strings_start); CG 53 Zend/zend_string.c CG(interned_strings_end) = CG(interned_strings_start) + size; CG 55 Zend/zend_string.c zend_hash_init(&CG(interned_strings), 0, NULL, NULL, 1); CG 57 Zend/zend_string.c CG(interned_strings).nTableMask = CG(interned_strings).nTableSize - 1; CG 58 Zend/zend_string.c CG(interned_strings).arBuckets = (Bucket **) pecalloc(CG(interned_strings).nTableSize, sizeof(Bucket *), CG(interned_strings).persistent); CG 61 Zend/zend_string.c mprotect(CG(interned_strings_start), CG(interned_strings_end) - CG(interned_strings_start), PROT_READ); CG 75 Zend/zend_string.c mprotect(CG(interned_strings_start), CG(interned_strings_end) - CG(interned_strings_start), PROT_WRITE | PROT_READ); CG 77 Zend/zend_string.c free(CG(interned_strings).arBuckets); CG 78 Zend/zend_string.c free(CG(interned_strings_start)); CG 94 Zend/zend_string.c nIndex = h & CG(interned_strings).nTableMask; CG 95 Zend/zend_string.c p = CG(interned_strings).arBuckets[nIndex]; CG 108 Zend/zend_string.c if (CG(interned_strings_top) + ZEND_MM_ALIGNED_SIZE(sizeof(Bucket) + nKeyLength) >= CG 109 Zend/zend_string.c CG(interned_strings_end)) { CG 114 Zend/zend_string.c p = (Bucket *) CG(interned_strings_top); CG 115 Zend/zend_string.c CG(interned_strings_top) += ZEND_MM_ALIGNED_SIZE(sizeof(Bucket) + nKeyLength); CG 118 Zend/zend_string.c mprotect(CG(interned_strings_start), CG(interned_strings_end) - CG(interned_strings_start), PROT_READ | PROT_WRITE); CG 131 Zend/zend_string.c p->pNext = CG(interned_strings).arBuckets[nIndex]; CG 139 Zend/zend_string.c p->pListLast = CG(interned_strings).pListTail; CG 140 Zend/zend_string.c CG(interned_strings).pListTail = p; CG 145 Zend/zend_string.c if (!CG(interned_strings).pListHead) { CG 146 Zend/zend_string.c CG(interned_strings).pListHead = p; CG 149 Zend/zend_string.c CG(interned_strings).arBuckets[nIndex] = p; CG 153 Zend/zend_string.c CG(interned_strings).nNumOfElements++; CG 155 Zend/zend_string.c if (CG(interned_strings).nNumOfElements > CG(interned_strings).nTableSize) { CG 156 Zend/zend_string.c if ((CG(interned_strings).nTableSize << 1) > 0) { /* Let's double the table size */ CG 157 Zend/zend_string.c Bucket **t = (Bucket **) perealloc_recoverable(CG(interned_strings).arBuckets, (CG(interned_strings).nTableSize << 1) * sizeof(Bucket *), CG(interned_strings).persistent); CG 161 Zend/zend_string.c CG(interned_strings).arBuckets = t; CG 162 Zend/zend_string.c CG(interned_strings).nTableSize = (CG(interned_strings).nTableSize << 1); CG 163 Zend/zend_string.c CG(interned_strings).nTableMask = CG(interned_strings).nTableSize - 1; CG 164 Zend/zend_string.c zend_hash_rehash(&CG(interned_strings)); CG 171 Zend/zend_string.c mprotect(CG(interned_strings_start), CG(interned_strings_end) - CG(interned_strings_start), PROT_READ); CG 182 Zend/zend_string.c CG(interned_strings_snapshot_top) = CG(interned_strings_top); CG 192 Zend/zend_string.c CG(interned_strings_top) = CG(interned_strings_snapshot_top); CG 196 Zend/zend_string.c mprotect(CG(interned_strings_start), CG(interned_strings_end) - CG(interned_strings_start), PROT_WRITE | PROT_READ); CG 199 Zend/zend_string.c for (i = 0; i < CG(interned_strings).nTableSize; i++) { CG 200 Zend/zend_string.c p = CG(interned_strings).arBuckets[i]; CG 201 Zend/zend_string.c while (p && p->arKey > CG(interned_strings_top)) { CG 202 Zend/zend_string.c CG(interned_strings).nNumOfElements--; CG 206 Zend/zend_string.c CG(interned_strings).pListHead = p->pListNext; CG 211 Zend/zend_string.c CG(interned_strings).pListTail = p->pListLast; CG 218 Zend/zend_string.c CG(interned_strings).arBuckets[i] = p; CG 222 Zend/zend_string.c mprotect(CG(interned_strings_start), CG(interned_strings_end) - CG(interned_strings_start), PROT_READ); CG 38 Zend/zend_string.h (((s) >= CG(interned_strings_start)) && ((s) < CG(interned_strings_end))) CG 66 ext/opcache/Optimizer/zend_optimizer.c if (i >= CG(context).literals_size) { CG 67 ext/opcache/Optimizer/zend_optimizer.c CG(context).literals_size += 16; /* FIXME */ CG 68 ext/opcache/Optimizer/zend_optimizer.c op_array->literals = (zend_literal*)erealloc(op_array->literals, CG(context).literals_size * sizeof(zend_literal)); CG 392 ext/opcache/ZendAccelerator.c p = CG(function_table)->pListHead; CG 401 ext/opcache/ZendAccelerator.c p = CG(class_table)->pListHead; CG 457 ext/opcache/ZendAccelerator.c p = CG(auto_globals)->pListHead; CG 1361 ext/opcache/ZendAccelerator.c orig_active_op_array = CG(active_op_array); CG 1362 ext/opcache/ZendAccelerator.c orig_function_table = CG(function_table); CG 1363 ext/opcache/ZendAccelerator.c orig_class_table = CG(class_table); CG 1367 ext/opcache/ZendAccelerator.c CG(function_table) = &ZCG(function_table); CG 1368 ext/opcache/ZendAccelerator.c EG(class_table) = CG(class_table) = &new_persistent_script->class_table; CG 1373 ext/opcache/ZendAccelerator.c orig_compiler_options = CG(compiler_options); CG 1374 ext/opcache/ZendAccelerator.c CG(compiler_options) |= ZEND_COMPILE_HANDLE_OP_ARRAY; CG 1375 ext/opcache/ZendAccelerator.c CG(compiler_options) |= ZEND_COMPILE_IGNORE_INTERNAL_CLASSES; CG 1376 ext/opcache/ZendAccelerator.c CG(compiler_options) |= ZEND_COMPILE_DELAYED_BINDING; CG 1377 ext/opcache/ZendAccelerator.c CG(compiler_options) |= ZEND_COMPILE_NO_CONSTANT_SUBSTITUTION; CG 1381 ext/opcache/ZendAccelerator.c CG(compiler_options) = orig_compiler_options; CG 1387 ext/opcache/ZendAccelerator.c CG(compiler_options) = orig_compiler_options; CG 1392 ext/opcache/ZendAccelerator.c CG(active_op_array) = orig_active_op_array; CG 1393 ext/opcache/ZendAccelerator.c CG(function_table) = orig_function_table; CG 1394 ext/opcache/ZendAccelerator.c EG(class_table) = CG(class_table) = orig_class_table; CG 1462 ext/opcache/ZendAccelerator.c CG(interactive) || CG 1805 ext/opcache/ZendAccelerator.c !CG(interactive) && CG 1901 ext/opcache/ZendAccelerator.c !CG(interactive) && CG 1966 ext/opcache/ZendAccelerator.c !CG(interactive) && CG 2324 ext/opcache/ZendAccelerator.c CG(unclean_shutdown) = 1; CG 2449 ext/opcache/ZendAccelerator.c orig_interned_strings_start = CG(interned_strings_start); CG 2450 ext/opcache/ZendAccelerator.c orig_interned_strings_end = CG(interned_strings_end); CG 2451 ext/opcache/ZendAccelerator.c CG(interned_strings_start) = ZCSG(interned_strings_start); CG 2452 ext/opcache/ZendAccelerator.c CG(interned_strings_end) = ZCSG(interned_strings_end); CG 2491 ext/opcache/ZendAccelerator.c zend_hash_init(&accel_globals->function_table, zend_hash_num_elements(CG(function_table)), NULL, ZEND_FUNCTION_DTOR, 1); CG 2556 ext/opcache/ZendAccelerator.c orig_interned_strings_start = CG(interned_strings_start); CG 2557 ext/opcache/ZendAccelerator.c orig_interned_strings_end = CG(interned_strings_end); CG 2562 ext/opcache/ZendAccelerator.c CG(interned_strings_start) = ZCSG(interned_strings_start); CG 2563 ext/opcache/ZendAccelerator.c CG(interned_strings_end) = ZCSG(interned_strings_end); CG 2602 ext/opcache/ZendAccelerator.c if (zend_hash_find(CG(function_table), "chdir", sizeof("chdir"), (void**)&func) == SUCCESS && CG 2691 ext/opcache/ZendAccelerator.c zend_hash_clean(CG(function_table)); CG 2692 ext/opcache/ZendAccelerator.c zend_hash_clean(CG(class_table)); CG 2695 ext/opcache/ZendAccelerator.c CG(interned_strings_start) = orig_interned_strings_start; CG 2696 ext/opcache/ZendAccelerator.c CG(interned_strings_end) = orig_interned_strings_end; CG 394 ext/opcache/zend_accelerator_module.c if (zend_hash_find(CG(function_table), "file_exists", sizeof("file_exists"), (void **)&old_function) == SUCCESS) { CG 398 ext/opcache/zend_accelerator_module.c if (zend_hash_find(CG(function_table), "is_file", sizeof("is_file"), (void **)&old_function) == SUCCESS) { CG 402 ext/opcache/zend_accelerator_module.c if (zend_hash_find(CG(function_table), "is_readable", sizeof("is_readable"), (void **)&old_function) == SUCCESS) { CG 213 ext/opcache/zend_accelerator_util_funcs.c zend_hash_apply_with_argument(CG(function_table), (apply_func_arg_t)copy_internal_function, &ZCG(function_table) TSRMLS_CC); CG 876 ext/opcache/zend_accelerator_util_funcs.c CG(in_compilation) = 1; CG 878 ext/opcache/zend_accelerator_util_funcs.c CG(zend_lineno) = function1->op_array.opcodes[0].lineno; CG 896 ext/opcache/zend_accelerator_util_funcs.c CG(in_compilation) = 1; CG 899 ext/opcache/zend_accelerator_util_funcs.c CG(zend_lineno) = (*pce1)->info.user.line_start; CG 902 ext/opcache/zend_accelerator_util_funcs.c CG(zend_lineno) = (*pce1)->line_start; CG 914 ext/opcache/zend_accelerator_util_funcs.c zend_bool orig_in_compilation = CG(in_compilation); CG 918 ext/opcache/zend_accelerator_util_funcs.c CG(in_compilation) = 1; CG 926 ext/opcache/zend_accelerator_util_funcs.c CG(in_compilation) = orig_in_compilation; CG 942 ext/opcache/zend_accelerator_util_funcs.c zend_accel_class_hash_copy(CG(class_table), &persistent_script->class_table, (unique_copy_ctor_func_t) zend_class_copy_ctor TSRMLS_CC); CG 948 ext/opcache/zend_accelerator_util_funcs.c zend_accel_function_hash_copy(CG(function_table), &persistent_script->function_table, (unique_copy_ctor_func_t)zend_prepare_function_for_execution); CG 977 ext/opcache/zend_accelerator_util_funcs.c zend_accel_function_hash_copy(CG(function_table), &persistent_script->function_table, NULL); CG 980 ext/opcache/zend_accelerator_util_funcs.c zend_accel_class_hash_copy(CG(class_table), &persistent_script->class_table, NULL TSRMLS_CC); CG 986 ext/opcache/zend_accelerator_util_funcs.c char *orig_compiled_filename = CG(compiled_filename); CG 987 ext/opcache/zend_accelerator_util_funcs.c CG(compiled_filename) = persistent_script->full_path; CG 989 ext/opcache/zend_accelerator_util_funcs.c CG(compiled_filename) = orig_compiled_filename; CG 81 ext/pdo/pdo.c if (zend_hash_find(CG(class_table), "runtimeexception", sizeof("RuntimeException"), (void **) &pce) == SUCCESS) { CG 70 ext/pdo/php_pdo.h if (zend_hash_find(CG(class_table), "pdo", sizeof("pdo"), (void **) &pce) != FAILURE) \ CG 1058 ext/phar/func_interceptors.c if (SUCCESS == zend_hash_find(CG(function_table), #func, sizeof(#func), (void **)&orig)) { \ CG 1095 ext/phar/func_interceptors.c if (PHAR_G(orig_##func) && SUCCESS == zend_hash_find(CG(function_table), #func, sizeof(#func), (void **)&orig)) { \ CG 3387 ext/phar/phar.c CG(zend_lineno) = 0; CG 502 ext/readline/readline.c if (call_user_function(CG(function_table), NULL, _readline_completion, &_readline_array, 3, params TSRMLS_CC) == SUCCESS) { CG 572 ext/readline/readline.c call_user_function(CG(function_table), NULL, _prepped_callback, &dummy, 1, params TSRMLS_CC); CG 274 ext/readline/readline_cli.c if (!CG(asp_tags)) { CG 362 ext/readline/readline_cli.c if ((CG(short_tags) && !strncmp(code+i-1, "<?", 2)) CG 363 ext/readline/readline_cli.c || (CG(asp_tags) && !strncmp(code+i-1, "<%", 2)) CG 1116 ext/reflection/php_reflection.c zend_hash_internal_pointer_reset_ex(CG(function_table), &iterator); CG 1117 ext/reflection/php_reflection.c while (zend_hash_get_current_data_ex(CG(function_table), (void **) &fptr, &iterator) == SUCCESS) { CG 1126 ext/reflection/php_reflection.c zend_hash_move_forward_ex(CG(function_table), &iterator); CG 5277 ext/reflection/php_reflection.c zend_hash_internal_pointer_reset_ex(CG(function_table), &iterator); CG 5278 ext/reflection/php_reflection.c while (zend_hash_get_current_data_ex(CG(function_table), (void **) &fptr, &iterator) == SUCCESS) { CG 5285 ext/reflection/php_reflection.c zend_hash_move_forward_ex(CG(function_table), &iterator); CG 193 ext/simplexml/sxe.c if (zend_hash_find(CG(class_table), "simplexmlelement", sizeof("SimpleXMLElement"), (void **) &pce) == FAILURE) { CG 407 ext/soap/php_http.c if (call_user_function(CG(function_table), (zval**)NULL, &func, &retval, n, params TSRMLS_CC) == SUCCESS && CG 1277 ext/soap/php_http.c if (call_user_function(CG(function_table), (zval**)NULL, &func, &retval, 1, params TSRMLS_CC) == SUCCESS && CG 93 ext/soap/soap.c zend_bool _old_in_compilation = CG(in_compilation); \ CG 105 ext/soap/soap.c CG(in_compilation) = _old_in_compilation; \ CG 1606 ext/soap/soap.c if (call_user_function(CG(function_table), (zval**)NULL, &func, &retval, 1, params TSRMLS_CC) == SUCCESS && CG 2133 ext/soap/soap.c _old_in_compilation = CG(in_compilation); CG 2201 ext/soap/soap.c CG(in_compilation) = _old_in_compilation; CG 2285 ext/soap/soap.c CG(in_compilation) = _old_in_compilation; CG 222 ext/standard/assert.c call_user_function(CG(function_table), NULL, ASSERTG(callback), retval, 3, args TSRMLS_CC); CG 230 ext/standard/assert.c call_user_function(CG(function_table), NULL, ASSERTG(callback), retval, 4, args TSRMLS_CC); CG 184 ext/standard/user_filters.c if (CG(unclean_shutdown)) { CG 803 ext/standard/var.c res = call_user_function_ex(CG(function_table), &struc, &fname, &retval_ptr, 0, 0, 1, NULL TSRMLS_CC); CG 444 ext/standard/var_unserializer.c call_user_function_ex(CG(function_table), rval, &fname, &retval_ptr, 0, 0, 1, NULL TSRMLS_CC); CG 703 ext/standard/var_unserializer.c if (call_user_function_ex(CG(function_table), NULL, user_func, &retval_ptr, 1, args, 0, NULL TSRMLS_CC) != SUCCESS) { CG 121 ext/tokenizer/tokenizer.c CG(zend_lineno)++; CG 137 ext/tokenizer/tokenizer.c if (CG(increment_lineno)) { CG 138 ext/tokenizer/tokenizer.c token_line = ++CG(zend_lineno); CG 139 ext/tokenizer/tokenizer.c CG(increment_lineno) = 0; CG 174 ext/tokenizer/tokenizer.c token_line = CG(zend_lineno); CG 473 ext/wddx/wddx.c if (call_user_function_ex(CG(function_table), &obj, fname, &retval, 0, 0, 1, NULL TSRMLS_CC) == SUCCESS) { CG 951 ext/xmlrpc/xmlrpc-epi-php.c call_user_function(CG(function_table), NULL, pData->php_function, pData->return_data, 3, callback_params TSRMLS_CC); CG 981 ext/xmlrpc/xmlrpc-epi-php.c if (call_user_function(CG(function_table), NULL, *php_function, &retval, 1, callback_params TSRMLS_CC) == SUCCESS) { CG 138 main/main.c if (zend_hash_del(CG(function_table), function_name_5[i], strlen(function_name_5[i]) + 1)==FAILURE) { CG 147 main/main.c if (zend_hash_del(CG(function_table), function_name_6[i], strlen(function_name_6[i]) + 1)==FAILURE) { CG 1167 main/main.c CG(parse_error) = 0; CG 1716 main/main.c shutdown_memory_manager(CG(unclean_shutdown), 0 TSRMLS_CC); CG 1761 main/main.c if (CG(unclean_shutdown) && PG(last_error_type) == E_ERROR && CG 1832 main/main.c shutdown_memory_manager(CG(unclean_shutdown) || !report_memleaks, 0 TSRMLS_CC); CG 2401 main/main.c shutdown_memory_manager(CG(unclean_shutdown), 1 TSRMLS_CC); CG 2516 main/main.c if (CG(start_lineno) && prepend_file_p) { CG 2517 main/main.c int orig_start_lineno = CG(start_lineno); CG 2519 main/main.c CG(start_lineno) = 0; CG 2521 main/main.c CG(start_lineno) = orig_start_lineno; CG 2140 sapi/cgi/cgi_main.c CG(interactive) = 0; CG 2148 sapi/cgi/cgi_main.c CG(interactive) = 1; CG 2156 sapi/cgi/cgi_main.c CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO; CG 2412 sapi/cgi/cgi_main.c CG(start_lineno) = 2; CG 2430 sapi/cgi/cgi_main.c CG(start_lineno) = 2; CG 679 sapi/cli/php_cli.c CG(in_compilation) = 0; /* not initialized but needed for several options */ CG 921 sapi/cli/php_cli.c CG(interactive) = interactive; CG 972 sapi/cli/php_cli.c CG(start_lineno) = lineno; CG 1076 sapi/cli/php_cli.c CG(start_lineno) = lineno; CG 1371 sapi/cli/php_cli.c CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO; CG 1804 sapi/fpm/fpm/fpm_main.c CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO; CG 1885 sapi/fpm/fpm/fpm_main.c CG(interactive) = 0; CG 903 sapi/isapi/php5isapi.c CG(unclean_shutdown)=1; CG 804 sapi/litespeed/lsapi_main.c CG(in_compilation) = 0; /* not initialized but needed for several options */ CG 156 sapi/milter/php_milter.c status = call_user_function(CG(function_table), NULL, &function_name, &retval, 0, NULL TSRMLS_CC); CG 227 sapi/milter/php_milter.c status = call_user_function(CG(function_table), NULL, &function_name, &retval, 1, param TSRMLS_CC); CG 261 sapi/milter/php_milter.c status = call_user_function(CG(function_table), NULL, &function_name, &retval, 1, param TSRMLS_CC); CG 301 sapi/milter/php_milter.c status = call_user_function(CG(function_table), NULL, &function_name, &retval, 1, param TSRMLS_CC); CG 341 sapi/milter/php_milter.c status = call_user_function(CG(function_table), NULL, &function_name, &retval, 1, param TSRMLS_CC); CG 380 sapi/milter/php_milter.c status = call_user_function(CG(function_table), NULL, &function_name, &retval, 2, param TSRMLS_CC); CG 412 sapi/milter/php_milter.c status = call_user_function(CG(function_table), NULL, &function_name, &retval, 0, NULL TSRMLS_CC); CG 446 sapi/milter/php_milter.c status = call_user_function(CG(function_table), NULL, &function_name, &retval, 1, param TSRMLS_CC); CG 477 sapi/milter/php_milter.c status = call_user_function(CG(function_table), NULL, &function_name, &retval, 0, NULL TSRMLS_CC); CG 506 sapi/milter/php_milter.c status = call_user_function(CG(function_table), NULL, &function_name, &retval, 0, NULL TSRMLS_CC); CG 540 sapi/milter/php_milter.c status = call_user_function(CG(function_table), NULL, &function_name, &retval, 0, NULL TSRMLS_CC); CG 1085 sapi/milter/php_milter.c CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO; CG 1141 sapi/milter/php_milter.c CG(interactive) = interactive;