Home
last modified time | relevance | path

Searched refs:CG (Results 1 – 25 of 65) sorted by relevance

123

/PHP-8.1/Zend/
H A Dzend.c136 if (!CG(multibyte)) { in ZEND_INI_MH()
1005 CG(map_ptr_base) = ZEND_MAP_PTR_BIASED_BASE(CG(map_ptr_real_base)); in zend_startup()
1259 memset(CG(map_ptr_real_base), 0, CG(map_ptr_last) * sizeof(void*)); in zend_activate()
1359 CG(stack).top = CG(stack).max = 0; \
1919 if (CG(map_ptr_last) >= CG(map_ptr_size)) { in zend_map_ptr_new()
1926 CG(map_ptr_real_base) = perealloc(CG(map_ptr_real_base), CG(map_ptr_size) * sizeof(void*), 1); in zend_map_ptr_new()
1927 CG(map_ptr_base) = ZEND_MAP_PTR_BIASED_BASE(CG(map_ptr_real_base)); in zend_map_ptr_new()
1932 ptr = (void**)CG(map_ptr_real_base) + CG(map_ptr_last); in zend_map_ptr_new()
1934 CG(map_ptr_last)++; in zend_map_ptr_new()
1956 CG(map_ptr_real_base) = perealloc(CG(map_ptr_real_base), CG(map_ptr_size) * sizeof(void*), 1); in zend_map_ptr_extend()
[all …]
H A Dzend_compile.c133CG(context).brk_cont_array = erealloc(CG(context).brk_cont_array, sizeof(zend_brk_cont_element) * in get_next_brk_cont_element()
134 return &CG(context).brk_cont_array[CG(context).last_brk_cont-1]; in get_next_brk_cont_element()
377 CG(skip_shebang) = 0; in zend_init_compiler_data_structures()
381 CG(memoize_mode) = 0; in zend_init_compiler_data_structures()
405 memset(&CG(context), 0, sizeof(CG(context))); in init_compiler()
667 CG(context).current_brk_cont = CG(context).last_brk_cont; in zend_begin_loop()
694 = &CG(context).brk_cont_array[CG(context).current_brk_cont]; in zend_end_loop()
1650 if (CG(active_class_entry) && CG(active_class_entry)->parent_name in zend_try_compile_const_expr_resolve_class_name()
1864 CG(zend_lineno)++; in zendlex()
2158 …if (CG(active_op_array)->last && CG(active_op_array)->opcodes[CG(active_op_array)->last - 1].opcod… in zend_emit_tick()
[all …]
H A Dzend_language_scanner.l107 CG(zend_lineno)++; \
190 CG(parse_error) = 0; in startup_scanner()
205 CG(parse_error) = 0; in shutdown_scanner()
472 if (!CG(script_encoding_list) || !CG(script_encoding_list_size)) { in zend_multibyte_find_script_encoding()
585 CG(zend_lineno) = 1; in open_file_for_scanning()
596 CG(ast) = NULL; in zend_compile()
675 CG(ast) = NULL; in zend_compile_string_to_ast()
682 CG(ast) = NULL; in zend_compile_string_to_ast()
686 ast = CG(ast); in zend_compile_string_to_ast()
2203 CG(zend_lineno)++;
[all …]
H A Dzend_ini_parser.y37 #define ZEND_INI_PARSER_CB (CG(ini_parser_param))->ini_parser_cb
38 #define ZEND_INI_PARSER_ARG (CG(ini_parser_param))->arg
45 #define ZEND_SYSTEM_INI CG(ini_parser_unbuffered_errors)
202 if (CG(ini_parser_unbuffered_errors)) { in ini_error()
222 CG(ini_parser_param) = &ini_parser_param; in zend_parse_ini_file()
228 CG(ini_parser_unbuffered_errors) = unbuffered_errors; in zend_parse_ini_file()
249 CG(ini_parser_param) = &ini_parser_param; in zend_parse_ini_string()
255 CG(ini_parser_unbuffered_errors) = unbuffered_errors; in zend_parse_ini_string()
H A Dzend_inheritance.c222 if (!CG(delayed_autoloads)) { in register_unresolved_class()
223 ALLOC_HASHTABLE(CG(delayed_autoloads)); in register_unresolved_class()
372 if (!CG(current_linking_class) || ce == CG(current_linking_class)) { in track_class_dependency()
399 CG(current_linking_class) = NULL; in track_class_dependency()
2453 CG(current_linking_class) = in check_variance_obligation()
2529 if (CG(unlinked_uses) in check_unrecoverable_load_failure()
2817 if (CG(unlinked_uses)) { in zend_do_link_class()
2894 if (CG(current_linking_class)) { in zend_do_link_class()
2904 CG(current_linking_class) = NULL; in zend_do_link_class()
2908 if (!CG(current_linking_class)) { in zend_do_link_class()
[all …]
H A Dzend_globals_macros.h32 # define CG(v) ZEND_TSRMG_FAST(compiler_globals_offset, zend_compiler_globals *, v) macro
34 # define CG(v) (compiler_globals.v)
H A Dzend_multibyte.c175 if (CG(script_encoding_list)) { in zend_multibyte_set_script_encoding()
176 free((char*)CG(script_encoding_list)); in zend_multibyte_set_script_encoding()
178 CG(script_encoding_list) = encoding_list; in zend_multibyte_set_script_encoding()
179 CG(script_encoding_list_size) = encoding_list_size; in zend_multibyte_set_script_encoding()
H A Dzend_map_ptr.h38 ((void**)((char*)CG(map_ptr_base) + offset))
40 ((void*)(((char*)(ptr)) - ((char*)CG(map_ptr_base))))
H A Dzend_language_parser.y295 top_statement_list { CG(ast) = $1; }
613 T_ENUM { $<num>$ = CG(zend_lineno); }
1215 CG(extra_fn_flags) = $9; }
1219 T_FN { $$ = CG(zend_lineno); }
1223 T_FUNCTION { $$ = CG(zend_lineno); }
1227 %empty { $$ = CG(doc_comment); CG(doc_comment) = NULL; }
1231 %prec PREC_ARROW_FUNCTION %empty { $$ = CG(extra_fn_flags); CG(extra_fn_flags) = 0; }
1553 if (yyres && CG(parse_error) < 2) {
1554 CG(parse_error) = 2;
1557 if (CG(parse_error) % 2 == 0) {
[all …]
H A Dzend_string.c234 ret = zend_interned_string_ht_lookup(str, &CG(interned_strings)); in zend_new_interned_string_request()
255 ret = zend_add_interned_string(str, &CG(interned_strings), 0); in zend_new_interned_string_request()
301 ret = zend_interned_string_ht_lookup_ex(h, str, size, &CG(interned_strings)); in zend_string_init_interned_request()
317 return zend_add_interned_string(ret, &CG(interned_strings), 0); in zend_string_init_interned_request()
328 ret = zend_interned_string_ht_lookup_ex(h, str, size, &CG(interned_strings)); in zend_string_init_existing_interned_request()
341 zend_init_interned_strings_ht(&CG(interned_strings), 0); in zend_interned_strings_activate()
346 zend_hash_destroy(&CG(interned_strings)); in zend_interned_strings_deactivate()
H A Dzend_opcode.c654 CG(in_compilation) = 1; in zend_check_finally_breakout()
655 CG(active_op_array) = op_array; in zend_check_finally_breakout()
662 CG(in_compilation) = 1; in zend_check_finally_breakout()
663 CG(active_op_array) = op_array; in zend_check_finally_breakout()
675 jmp_to = &CG(context).brk_cont_array[array_offset]; in zend_get_brk_cont_target()
1016 if (CG(context).vars_size != op_array->last_var) { in pass_two()
1018 CG(context).vars_size = op_array->last_var; in pass_two()
1022 if (CG(context).opcodes_size != op_array->last) { in pass_two()
1024 CG(context).opcodes_size = op_array->last; in pass_two()
1040 CG(context).opcodes_size = op_array->last; in pass_two()
[all …]
H A Dzend_ast.c51 ast->lineno = CG(zend_lineno); in zend_ast_create_znode()
161 lineno = CG(zend_lineno); in zend_ast_create_1()
183 lineno = CG(zend_lineno); in zend_ast_create_2()
208 lineno = CG(zend_lineno); in zend_ast_create_3()
236 lineno = CG(zend_lineno); in zend_ast_create_4()
267 lineno = CG(zend_lineno); in zend_ast_create_5()
302 lineno = CG(zend_lineno); in zend_ast_create_list_1()
305 lineno = CG(zend_lineno); in zend_ast_create_list_1()
327 lineno = CG(zend_lineno); in zend_ast_create_list_2()
332 lineno = CG(zend_lineno); in zend_ast_create_list_2()
[all …]
H A Dzend_execute_API.c145 EG(function_table) = CG(function_table); in init_executor()
146 EG(class_table) = CG(class_table); in init_executor()
249 if (CG(unclean_shutdown)) { in shutdown_destructors()
382 if (!CG(unclean_shutdown)) { in zend_shutdown_executor_values()
473 if (EG(ht_iterators_used) && !CG(unclean_shutdown)) { in shutdown_executor()
1106 if (!CG(unlinked_uses)) { in zend_lookup_class_ex()
1107 ALLOC_HASHTABLE(CG(unlinked_uses)); in zend_lookup_class_ex()
1174 ZEND_ASSERT(!CG(in_compilation)); in zend_lookup_class_ex()
1239 original_compiler_options = CG(compiler_options); in zend_eval_stringl()
1240 CG(compiler_options) = ZEND_COMPILE_DEFAULT_FOR_EVAL; in zend_eval_stringl()
[all …]
H A Dzend_stream.c271 …zend_llist_del_element(&CG(open_files), file_handle, (int (*)(void *, void *)) zend_compare_file_h… in zend_destroy_file_handle()
282 …zend_llist_init(&CG(open_files), sizeof(zend_file_handle), (void (*)(void *)) zend_file_handle_dto… in zend_stream_init()
287 zend_llist_destroy(&CG(open_files)); in zend_stream_shutdown()
/PHP-8.1/ext/tokenizer/
H A Dtokenizer.c375 if (CG(increment_lineno)) { in tokenize()
376 CG(zend_lineno)++; in tokenize()
377 CG(increment_lineno) = 0; in tokenize()
380 token_line = CG(zend_lineno); in tokenize()
470 original_in_compilation = CG(in_compilation); in tokenize_parse()
471 CG(in_compilation) = 1; in tokenize_parse()
480 CG(ast) = NULL; in tokenize_parse()
481 CG(ast_arena) = zend_arena_create(1024 * 32); in tokenize_parse()
492 zend_ast_destroy(CG(ast)); in tokenize_parse()
493 zend_arena_destroy(CG(ast_arena)); in tokenize_parse()
[all …]
/PHP-8.1/ext/opcache/
H A Dzend_accelerator_util_funcs.c153 CG(in_compilation) = 1; in zend_accel_function_hash_copy()
155 CG(zend_lineno) = function1->op_array.opcodes[0].lineno; in zend_accel_function_hash_copy()
194 CG(in_compilation) = 1; in zend_accel_class_hash_copy()
196 CG(zend_lineno) = ce1->info.user.line_start; in zend_accel_class_hash_copy()
226 if (ZCSG(map_ptr_last) > CG(map_ptr_last)) { in zend_accel_load_script()
245 zend_accel_function_hash_copy(CG(function_table), &persistent_script->script.function_table); in zend_accel_load_script()
249 zend_accel_class_hash_copy(CG(class_table), &persistent_script->script.class_table); in zend_accel_load_script()
253 zend_string *orig_compiled_filename = CG(compiled_filename); in zend_accel_load_script()
254 CG(compiled_filename) = persistent_script->script.filename; in zend_accel_load_script()
256 CG(compiled_filename) = orig_compiled_filename; in zend_accel_load_script()
H A DZendAccelerator.c3809 CG(in_compilation) = 0;
3940 CG(in_compilation) = 1;
3974 CG(in_compilation) = 0;
3998 CG(in_compilation) = 0;
4369 CG(map_ptr_size) = ZEND_MM_ALIGNED_SIZE_EX(CG(map_ptr_last) + 1, 4096);
4370 CG(map_ptr_real_base) = perealloc(CG(map_ptr_real_base), CG(map_ptr_size) * sizeof(void*), 1);
4371 CG(map_ptr_base) = ZEND_MAP_PTR_BIASED_BASE(CG(map_ptr_real_base));
4409 CG(skip_shebang) = 1;
4430 CG(unclean_shutdown) = 1;
4441 CG(unclean_shutdown) = 1;
[all …]
H A Dzend_accelerator_module.c404 …if ((old_function = zend_hash_str_find_ptr(CG(function_table), "file_exists", sizeof("file_exists"…
408 …if ((old_function = zend_hash_str_find_ptr(CG(function_table), "is_file", sizeof("is_file")-1)) !=…
412 …if ((old_function = zend_hash_str_find_ptr(CG(function_table), "is_readable", sizeof("is_readable"…
891 orig_compiler_options = CG(compiler_options);
892 CG(compiler_options) |= ZEND_COMPILE_WITHOUT_EXECUTION;
894 if (CG(compiler_options) & ZEND_COMPILE_PRELOAD) {
908 CG(compiler_options) = orig_compiler_options;
H A Dzend_file_cache.c1247 zend_arena_alloc(&CG(arena), sizeof(HashTable *)));
1654 zend_arena_alloc(&CG(arena), sizeof(zval *)));
1756 checkpoint = zend_arena_checkpoint(CG(arena));
1759 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size + 64);
1762 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size);
1770 zend_arena_release(&CG(arena), checkpoint);
1784 zend_arena_release(&CG(arena), checkpoint);
1805 zend_arena_release(&CG(arena), checkpoint);
1855 zend_arena_release(&CG(arena), checkpoint);
1864 ZCSG(map_ptr_last) = CG(map_ptr_last);
[all …]
/PHP-8.1/Zend/tests/
H A Dgh11108.phpt2 GH-11108: Incorrect CG(memoize_mode) state after bailout in ??=
/PHP-8.1/ext/standard/tests/strings/
H A Dbug68996.phpt2 Bug #68996 (Invalid free of CG(interned_empty_string))
/PHP-8.1/sapi/fuzzer/
H A Dfuzzer-sapi.c269 CG(compiled_filename) = NULL; /* ??? */ in fuzzer_do_request_from_buffer()
281 call_user_function(CG(function_table), NULL, &func, &retval, nargs, args); in fuzzer_call_php_func_zval()
/PHP-8.1/ext/fileinfo/tests/
H A Dbug68996.phpt2 Bug #68996 (Invalid free of CG(interned_empty_string))
/PHP-8.1/ext/soap/tests/
H A Dbug68996.phpt2 Bug #68996 (Invalid free of CG(interned_empty_string))
/PHP-8.1/ext/opcache/jit/
H A Dzend_jit.c2461 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_jit_allocate_registers()
2645 zend_arena_release(&CG(arena), checkpoint); in zend_jit_allocate_registers()
2724 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_jit()
4147 zend_arena_release(&CG(arena), checkpoint); in zend_jit()
4156 zend_arena_release(&CG(arena), checkpoint); in zend_jit()
4223 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_real_jit_func()
4256 zend_arena_release(&CG(arena), checkpoint); in zend_real_jit_func()
4261 zend_arena_release(&CG(arena), checkpoint); in zend_real_jit_func()
4549 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_jit_script()
4623 zend_arena_release(&CG(arena), checkpoint); in zend_jit_script()
[all …]

Completed in 151 milliseconds

123