Home
last modified time | relevance | path

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

123

/PHP-7.4/ext/tokenizer/
H A Dtokenizer.c174 if (CG(increment_lineno)) { in tokenize()
175 CG(zend_lineno)++; in tokenize()
176 CG(increment_lineno) = 0; in tokenize()
179 token_line = CG(zend_lineno); in tokenize()
232 original_in_compilation = CG(in_compilation); in tokenize_parse()
233 CG(in_compilation) = 1; in tokenize_parse()
240 CG(ast) = NULL; in tokenize_parse()
241 CG(ast_arena) = zend_arena_create(1024 * 32); in tokenize_parse()
252 zend_ast_destroy(CG(ast)); in tokenize_parse()
253 zend_arena_destroy(CG(ast_arena)); in tokenize_parse()
[all …]
/PHP-7.4/Zend/
H A Dzend.c130 if (!CG(multibyte)) { in ZEND_INI_MH()
915 CG(map_ptr_base) = pemalloc(CG(map_ptr_size) * sizeof(void*), 1); in zend_startup()
1108 CG(parse_error) = 0; in zenderror()
1175 memset(CG(map_ptr_base), 0, CG(map_ptr_last) * sizeof(void*)); in zend_activate()
1248 CG(stack).top = CG(stack).max = 0; \
1741 if (CG(map_ptr_last) >= CG(map_ptr_size)) { in zend_map_ptr_new()
1748 CG(map_ptr_base) = perealloc(CG(map_ptr_base), CG(map_ptr_size) * sizeof(void*), 1); in zend_map_ptr_new()
1753 ptr = (void**)CG(map_ptr_base) + CG(map_ptr_last); in zend_map_ptr_new()
1755 CG(map_ptr_last)++; in zend_map_ptr_new()
1777 CG(map_ptr_base) = perealloc(CG(map_ptr_base), CG(map_ptr_size) * sizeof(void*), 1); in zend_map_ptr_extend()
[all …]
H A Dzend_compile.c117CG(context).brk_cont_array = erealloc(CG(context).brk_cont_array, sizeof(zend_brk_cont_element) * in get_next_brk_cont_element()
118 return &CG(context).brk_cont_array[CG(context).last_brk_cont-1]; in get_next_brk_cont_element()
327 CG(skip_shebang) = 0; in zend_init_compiler_data_structures()
331 CG(memoize_mode) = 0; in zend_init_compiler_data_structures()
362 memset(&CG(context), 0, sizeof(CG(context))); in init_compiler()
643 CG(context).current_brk_cont = CG(context).last_brk_cont; in zend_begin_loop()
670 = &CG(context).brk_cont_array[CG(context).current_brk_cont]; in zend_end_loop()
1421 if (CG(active_class_entry) && CG(active_class_entry)->parent_name in zend_try_compile_const_expr_resolve_class_name()
1632 CG(zend_lineno)++; in zendlex()
1924 …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)++; \
191 CG(parse_error) = 0; in startup_scanner()
205 CG(parse_error) = 0; in shutdown_scanner()
461 if (!CG(script_encoding_list) || !CG(script_encoding_list_size)) { in zend_multibyte_find_script_encoding()
579 CG(zend_lineno) = 1; in open_file_for_scanning()
591 CG(ast) = NULL; in END_EXTERN_C()
708 if (CG(multibyte)) { in zend_prepare_string_for_scanning()
730 CG(zend_lineno) = 1; in zend_prepare_string_for_scanning()
918 CG(zend_lineno)++; in zend_scan_escape_string()
2002 CG(zend_lineno)++;
[all …]
H A Dzend_ini_parser.y39 #define ZEND_INI_PARSER_CB (CG(ini_parser_param))->ini_parser_cb
40 #define ZEND_INI_PARSER_ARG (CG(ini_parser_param))->arg
47 #define ZEND_SYSTEM_INI CG(ini_parser_unbuffered_errors)
210 if (CG(ini_parser_unbuffered_errors)) { in ini_error()
231 CG(ini_parser_param) = &ini_parser_param; in zend_parse_ini_file()
237 CG(ini_parser_unbuffered_errors) = unbuffered_errors; in zend_parse_ini_file()
260 CG(ini_parser_param) = &ini_parser_param; in zend_parse_ini_string()
266 CG(ini_parser_unbuffered_errors) = unbuffered_errors; in zend_parse_ini_string()
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.h57 ((void**)((char*)CG(map_ptr_base) + (uintptr_t)ZEND_MAP_PTR(ptr) - 1))
59 ((void*)((uintptr_t)(((char*)(ptr)) - ((char*)CG(map_ptr_base))) | 1L))
H A Dzend_language_parser.y270 top_statement_list { CG(ast) = $1; }
528 T_TRAIT { $<num>$ = CG(zend_lineno); }
1011 CG(extra_fn_flags) = $9; }
1015 T_FN { $$ = CG(zend_lineno); }
1019 T_FUNCTION { $$ = CG(zend_lineno); }
1023 /* empty */ { $$ = CG(doc_comment); CG(doc_comment) = NULL; }
1027 %prec PREC_ARROW_FUNCTION /* empty */ { $$ = CG(extra_fn_flags); CG(extra_fn_flags) = 0; }
1330 if (yyres && CG(parse_error) < 2) {
1331 CG(parse_error) = 2;
1334 if (CG(parse_error) % 2 == 0) {
[all …]
H A Dzend_string.c228 ret = zend_interned_string_ht_lookup(str, &CG(interned_strings)); in zend_new_interned_string_request()
249 ret = zend_add_interned_string(str, &CG(interned_strings), 0); in zend_new_interned_string_request()
281 ret = zend_interned_string_ht_lookup_ex(h, str, size, &CG(interned_strings)); in zend_string_init_interned_request()
297 return zend_add_interned_string(ret, &CG(interned_strings), 0); in zend_string_init_interned_request()
302 zend_init_interned_strings_ht(&CG(interned_strings), 0); in zend_interned_strings_activate()
307 zend_hash_destroy(&CG(interned_strings)); in zend_interned_strings_deactivate()
H A Dzend_opcode.c546 CG(in_compilation) = 1; in zend_check_finally_breakout()
547 CG(active_op_array) = op_array; in zend_check_finally_breakout()
554 CG(in_compilation) = 1; in zend_check_finally_breakout()
555 CG(active_op_array) = op_array; in zend_check_finally_breakout()
567 jmp_to = &CG(context).brk_cont_array[array_offset]; in zend_get_brk_cont_target()
895 if (CG(context).vars_size != op_array->last_var) { in pass_two()
897 CG(context).vars_size = op_array->last_var; in pass_two()
901 if (CG(context).opcodes_size != op_array->last) { in pass_two()
903 CG(context).opcodes_size = op_array->last; in pass_two()
919 CG(context).opcodes_size = op_array->last; in pass_two()
[all …]
H A Dzend_ast.c54 ast->lineno = CG(zend_lineno); in zend_ast_create_znode()
146 ast->lineno = CG(zend_lineno); in zend_ast_create_0()
163 lineno = CG(zend_lineno); in zend_ast_create_1()
186 lineno = CG(zend_lineno); in zend_ast_create_2()
211 lineno = CG(zend_lineno); in zend_ast_create_3()
239 lineno = CG(zend_lineno); in zend_ast_create_4()
274 lineno = CG(zend_lineno); in zend_ast_create_list_1()
277 lineno = CG(zend_lineno); in zend_ast_create_list_1()
299 lineno = CG(zend_lineno); in zend_ast_create_list_2()
304 lineno = CG(zend_lineno); in zend_ast_create_list_2()
[all …]
H A Dzend_inheritance.c90 if (CG(compiler_options) & ZEND_COMPILE_PRELOAD) { in zend_duplicate_user_function()
226 || ce->info.user.filename == CG(compiled_filename); in class_visible()
232 if (!CG(in_compilation)) { in lookup_class()
240 if (!CG(delayed_autoloads)) { in lookup_class()
241 ALLOC_HASHTABLE(CG(delayed_autoloads)); in lookup_class()
242 zend_hash_init(CG(delayed_autoloads), 0, NULL, NULL, 0); in lookup_class()
244 zend_hash_add_empty_element(CG(delayed_autoloads), name); in lookup_class()
2270 if (!CG(delayed_variance_obligations)) { in get_or_init_obligations_for_class()
2271 ALLOC_HASHTABLE(CG(delayed_variance_obligations)); in get_or_init_obligations_for_class()
2371 HashTable *delayed_autoloads = CG(delayed_autoloads); in load_delayed_classes()
[all …]
H A Dzend_execute_API.c139 EG(function_table) = CG(function_table); in init_executor()
140 EG(class_table) = CG(class_table); in init_executor()
238 if (CG(unclean_shutdown)) { in shutdown_destructors()
266 zend_llist_destroy(&CG(open_files)); in shutdown_executor()
336 if (gc_enabled() && !CG(unclean_shutdown)) { in shutdown_executor()
422 if (EG(ht_iterators_used) && !CG(unclean_shutdown)) { in shutdown_executor()
629 …return zval_update_constant_ex(pp, EG(current_execute_data) ? zend_get_executed_scope() : CG(activ… in zval_update_constant()
1081 original_compiler_options = CG(compiler_options); in zend_eval_stringl()
1082 CG(compiler_options) = ZEND_COMPILE_DEFAULT_FOR_EVAL; in zend_eval_stringl()
1084 CG(compiler_options) = original_compiler_options; in zend_eval_stringl()
H A Dzend_compile.h43 if (CG(doc_comment)) { \
44 zend_string_release_ex(CG(doc_comment), 0); \
45 CG(doc_comment) = NULL; \
660 CT_CONSTANT_EX(CG(active_op_array), (node).constant)
H A Dzend_interfaces.c360 funcs_ptr = zend_arena_alloc(&CG(arena), sizeof(zend_class_iterator_funcs)); in zend_implement_aggregate()
412 funcs_ptr = zend_arena_alloc(&CG(arena), sizeof(zend_class_iterator_funcs)); in zend_implement_iterator()
/PHP-7.4/ext/opcache/
H A Dzend_accelerator_util_funcs.c448 CG(in_compilation) = 1; in zend_accel_function_hash_copy()
450 CG(zend_lineno) = function1->op_array.opcodes[0].lineno; in zend_accel_function_hash_copy()
492 CG(in_compilation) = 1; in zend_accel_function_hash_copy_from_shm()
494 CG(zend_lineno) = function1->op_array.opcodes[0].lineno; in zend_accel_function_hash_copy_from_shm()
525 CG(in_compilation) = 1; in zend_accel_class_hash_copy()
527 CG(zend_lineno) = ce1->info.user.line_start; in zend_accel_class_hash_copy()
562 CG(in_compilation) = 1; in zend_accel_class_hash_copy_from_shm()
564 CG(zend_lineno) = ce1->info.user.line_start; in zend_accel_class_hash_copy_from_shm()
795 zend_string *orig_compiled_filename = CG(compiled_filename); in zend_accel_load_script()
796 CG(compiled_filename) = persistent_script->script.filename; in zend_accel_load_script()
[all …]
H A DZendAccelerator.c3540 CG(in_compilation) = 0; in preload_try_resolve_constants()
3756 CG(in_compilation) = 1; in preload_link()
3771 CG(in_compilation) = 0; in preload_link()
3772 CG(compiled_filename) = NULL; in preload_link()
4233 zend_hash_extend(CG(function_table), in preload_load()
4244 zend_hash_extend(CG(class_table), in preload_load()
4263 CG(map_ptr_size) = ZEND_MM_ALIGNED_SIZE_EX(CG(map_ptr_last) + 1, 4096); in preload_load()
4264 CG(map_ptr_base) = perealloc(CG(map_ptr_base), CG(map_ptr_size) * sizeof(void*), 1); in preload_load()
4354 orig_map_ptr_last = CG(map_ptr_last); in accel_preload()
4380 CG(unclean_shutdown) = 1; in accel_preload()
[all …]
H A Dzend_accelerator_module.c412 …if ((old_function = zend_hash_str_find_ptr(CG(function_table), "file_exists", sizeof("file_exists"…
416 …if ((old_function = zend_hash_str_find_ptr(CG(function_table), "is_file", sizeof("is_file")-1)) !=…
420 …if ((old_function = zend_hash_str_find_ptr(CG(function_table), "is_readable", sizeof("is_readable"…
869 orig_compiler_options = CG(compiler_options);
870 CG(compiler_options) |= ZEND_COMPILE_WITHOUT_EXECUTION;
872 if (CG(compiler_options) & ZEND_COMPILE_PRELOAD) {
886 CG(compiler_options) = orig_compiler_options;
H A Dzend_file_cache.c1587 checkpoint = zend_arena_checkpoint(CG(arena));
1590 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size + 64);
1593 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size);
1601 zend_arena_release(&CG(arena), checkpoint);
1615 zend_arena_release(&CG(arena), checkpoint);
1635 zend_arena_release(&CG(arena), checkpoint);
1685 zend_arena_release(&CG(arena), checkpoint);
1694 ZCSG(map_ptr_last) = CG(map_ptr_last);
1703 zend_arena_release(&CG(arena), checkpoint);
/PHP-7.4/ext/standard/tests/strings/
H A Dbug68996.phpt2 Bug #68996 (Invalid free of CG(interned_empty_string))
/PHP-7.4/ext/fileinfo/tests/
H A Dbug68996.phpt2 Bug #68996 (Invalid free of CG(interned_empty_string))
/PHP-7.4/ext/soap/tests/
H A Dbug68996.phpt2 Bug #68996 (Invalid free of CG(interned_empty_string))
/PHP-7.4/ext/simplexml/
H A Dsxe.c191 …if ((pce = zend_hash_str_find_ptr(CG(class_table), "simplexmlelement", sizeof("SimpleXMLElement") … in PHP_MINIT_FUNCTION()
/PHP-7.4/sapi/cli/
H A Dphp_cli.c635 CG(in_compilation) = 0; /* not initialized but needed for several options */ in do_cli()
936 CG(skip_shebang) = 1; in do_cli()
1029 CG(skip_shebang) = 1; in do_cli()
1353 CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO; in WinMain()

Completed in 108 milliseconds

123