/PHP-7.2/ext/tokenizer/ |
H A D | tokenizer.c | 173 if (CG(increment_lineno)) { in tokenize() 174 CG(zend_lineno)++; in tokenize() 175 CG(increment_lineno) = 0; in tokenize() 178 token_line = CG(zend_lineno); in tokenize() 223 original_in_compilation = CG(in_compilation); in tokenize_parse() 224 CG(in_compilation) = 1; in tokenize_parse() 231 CG(ast) = NULL; in tokenize_parse() 232 CG(ast_arena) = zend_arena_create(1024 * 32); in tokenize_parse() 243 zend_ast_destroy(CG(ast)); in tokenize_parse() 244 zend_arena_destroy(CG(ast_arena)); in tokenize_parse() [all …]
|
/PHP-7.2/Zend/ |
H A D | zend_compile.c | 255 if (CG(context).labels) { in zend_oparray_context_end() 323 CG(in_compilation) = 0; in zend_init_compiler_data_structures() 324 CG(start_lineno) = 0; in zend_init_compiler_data_structures() 357 memset(&CG(context), 0, sizeof(CG(context))); in init_compiler() 407 return CG(zend_lineno); in zend_get_compiled_lineno() 705 CG(context).current_brk_cont = CG(context).last_brk_cont; in zend_begin_loop() 732 = &CG(context).brk_cont_array[CG(context).current_brk_cont]; in zend_end_loop() 1721 CG(zend_lineno)++; in zendlex() 1776 if (CG(static_members_table) && n >= CG(last_static_member)) { in zend_initialize_class_data() 2192 …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 D | zend_language_scanner.l | 111 CG(zend_lineno)++; \ 179 CG(parse_error) = 0; in startup_scanner() 192 CG(parse_error) = 0; in shutdown_scanner() 447 if (!CG(script_encoding_list) || !CG(script_encoding_list_size)) { in zend_multibyte_find_script_encoding() 530 if (CG(multibyte)) { in open_file_for_scanning() 564 CG(zend_lineno) = CG(start_lineno); in open_file_for_scanning() 582 CG(ast) = NULL; in END_EXTERN_C() 700 if (CG(multibyte)) { in zend_prepare_string_for_scanning() 722 CG(zend_lineno) = 1; in zend_prepare_string_for_scanning() 1071 CG(zend_lineno)++; in zend_scan_escape_string() [all …]
|
H A D | zend_opcode.c | 457 op->lineno = CG(zend_lineno); in init_op() 467 CG(context).opcodes_size *= 4; in get_next_op() 485 CG(context).last_brk_cont++; in get_next_brk_cont_element() 486 …CG(context).brk_cont_array = erealloc(CG(context).brk_cont_array, sizeof(zend_brk_cont_element) * … in get_next_brk_cont_element() 487 return &CG(context).brk_cont_array[CG(context).last_brk_cont-1]; in get_next_brk_cont_element() 529 CG(in_compilation) = 1; in zend_check_finally_breakout() 530 CG(active_op_array) = op_array; in zend_check_finally_breakout() 537 CG(in_compilation) = 1; in zend_check_finally_breakout() 538 CG(active_op_array) = op_array; in zend_check_finally_breakout() 577 CG(context).vars_size = op_array->last_var; in pass_two() [all …]
|
H A D | zend_ini_parser.y | 41 #define ZEND_INI_PARSER_CB (CG(ini_parser_param))->ini_parser_cb 42 #define ZEND_INI_PARSER_ARG (CG(ini_parser_param))->arg 49 #define ZEND_SYSTEM_INI CG(ini_parser_unbuffered_errors) 211 if (CG(ini_parser_unbuffered_errors)) { in ini_error() 232 CG(ini_parser_param) = &ini_parser_param; in zend_parse_ini_file() 238 CG(ini_parser_unbuffered_errors) = unbuffered_errors; in zend_parse_ini_file() 261 CG(ini_parser_param) = &ini_parser_param; in zend_parse_ini_string() 267 CG(ini_parser_unbuffered_errors) = unbuffered_errors; in zend_parse_ini_string()
|
H A D | zend.c | 110 if (!CG(multibyte)) { in ZEND_INI_MH() 946 CG(parse_error) = 0; in zenderror() 965 CG(unclean_shutdown) = 1; in BEGIN_EXTERN_C() 966 CG(active_class_entry) = NULL; in BEGIN_EXTERN_C() 967 CG(in_compilation) = 0; in BEGIN_EXTERN_C() 1080 if (CG(stack).top) { \ 1082 CG(stack).top = CG(stack).max = 0; \ 1083 CG(stack).elements = NULL; \ 1265 CG(active_class_entry) = NULL; in zend_error() 1268 CG(in_compilation) = 0; in zend_error() [all …]
|
H A D | zend_globals_macros.h | 34 # define CG(v) ZEND_TSRMG(compiler_globals_id, zend_compiler_globals *, v) macro 36 # define CG(v) (compiler_globals.v)
|
H A D | zend_multibyte.c | 177 if (CG(script_encoding_list)) { in zend_multibyte_set_script_encoding() 178 free((char*)CG(script_encoding_list)); in zend_multibyte_set_script_encoding() 180 CG(script_encoding_list) = encoding_list; in zend_multibyte_set_script_encoding() 181 CG(script_encoding_list_size) = encoding_list_size; in zend_multibyte_set_script_encoding()
|
H A D | zend_string.c | 186 ret = zend_interned_string_ht_lookup(str, &CG(interned_strings)); in zend_new_interned_string_request() 193 ret = zend_add_interned_string(str, &CG(interned_strings), 0); in zend_new_interned_string_request() 200 zend_init_interned_strings_ht(&CG(interned_strings), 0); in zend_interned_strings_activate() 205 zend_hash_destroy(&CG(interned_strings)); in zend_interned_strings_deactivate()
|
H A D | zend_language_parser.y | 266 top_statement_list { CG(ast) = $1; } 507 | T_CLASS { $<num>$ = CG(zend_lineno); } 523 T_TRAIT { $<num>$ = CG(zend_lineno); } 529 T_INTERFACE { $<num>$ = CG(zend_lineno); } 994 T_FUNCTION { $$ = CG(zend_lineno); } 998 /* empty */ { $$ = CG(doc_comment); CG(doc_comment) = NULL; } 1002 /* empty */ { $$ = CG(extra_fn_flags); CG(extra_fn_flags) = 0; } 1304 if (yyres && CG(parse_error) < 2) { 1305 CG(parse_error) = 2; 1308 if (CG(parse_error) % 2 == 0) { [all …]
|
H A D | zend_language_scanner.c | 114 CG(zend_lineno)++; \ 182 CG(parse_error) = 0; in startup_scanner() 195 CG(parse_error) = 0; in shutdown_scanner() 450 if (!CG(script_encoding_list) || !CG(script_encoding_list_size)) { in zend_multibyte_find_script_encoding() 533 if (CG(multibyte)) { in open_file_for_scanning() 567 CG(zend_lineno) = CG(start_lineno); in open_file_for_scanning() 585 CG(ast) = NULL; in END_EXTERN_C() 703 if (CG(multibyte)) { in zend_prepare_string_for_scanning() 725 CG(zend_lineno) = 1; in zend_prepare_string_for_scanning() 1074 CG(zend_lineno)++; in zend_scan_escape_string() [all …]
|
H A D | zend_execute_API.c | 139 EG(function_table) = CG(function_table); in init_executor() 140 EG(class_table) = CG(class_table); in init_executor() 231 if (CG(unclean_shutdown)) { in shutdown_destructors() 259 zend_llist_destroy(&CG(open_files)); in shutdown_executor() 306 if (GC_G(gc_enabled) && !CG(unclean_shutdown)) { in shutdown_executor() 389 if (EG(ht_iterators_used) && !CG(unclean_shutdown)) { in shutdown_executor() 639 …return zval_update_constant_ex(pp, EG(current_execute_data) ? zend_get_executed_scope() : CG(activ… in zval_update_constant() 1069 original_compiler_options = CG(compiler_options); in zend_eval_stringl() 1070 CG(compiler_options) = ZEND_COMPILE_DEFAULT_FOR_EVAL; in zend_eval_stringl() 1072 CG(compiler_options) = original_compiler_options; in zend_eval_stringl()
|
H A D | zend_compile.h | 47 if (CG(doc_comment)) { \ 48 zend_string_release(CG(doc_comment)); \ 49 CG(doc_comment) = NULL; \ 614 CT_CONSTANT_EX(CG(active_op_array), (node).constant)
|
/PHP-7.2/ext/opcache/ |
H A D | zend_accelerator_util_funcs.c | 503 CG(in_compilation) = 1; in zend_accel_function_hash_copy() 505 CG(zend_lineno) = function1->op_array.opcodes[0].lineno; in zend_accel_function_hash_copy() 547 CG(in_compilation) = 1; in zend_accel_function_hash_copy_from_shm() 549 CG(zend_lineno) = function1->op_array.opcodes[0].lineno; in zend_accel_function_hash_copy_from_shm() 580 CG(in_compilation) = 1; in zend_accel_class_hash_copy() 582 CG(zend_lineno) = ce1->info.user.line_start; in zend_accel_class_hash_copy() 644 ZCG(arena_mem) = zend_arena_alloc(&CG(arena), persistent_script->arena_size + 64); in zend_accel_load_script() 648 ZCG(arena_mem) = zend_arena_alloc(&CG(arena), persistent_script->arena_size); in zend_accel_load_script() 688 zend_string *orig_compiled_filename = CG(compiled_filename); in zend_accel_load_script() 689 CG(compiled_filename) = persistent_script->script.filename; in zend_accel_load_script() [all …]
|
H A D | ZendAccelerator.c | 552 ZEND_HASH_FOREACH_BUCKET(CG(class_table), p) { in accel_copy_permanent_strings() 609 ZEND_HASH_FOREACH_BUCKET(CG(auto_globals), p) { in accel_copy_permanent_strings() 1617 orig_active_op_array = CG(active_op_array); in opcache_compile_file() 1618 orig_function_table = CG(function_table); in opcache_compile_file() 1619 orig_class_table = CG(class_table); in opcache_compile_file() 1623 CG(function_table) = &ZCG(function_table); in opcache_compile_file() 1628 orig_compiler_options = CG(compiler_options); in opcache_compile_file() 1634 CG(compiler_options) = orig_compiler_options; in opcache_compile_file() 1638 CG(compiler_options) = orig_compiler_options; in opcache_compile_file() 1642 CG(active_op_array) = orig_active_op_array; in opcache_compile_file() [all …]
|
H A D | zend_file_cache.c | 1437 checkpoint = zend_arena_checkpoint(CG(arena)); 1440 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size + 64); 1443 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size); 1451 zend_arena_release(&CG(arena), checkpoint); 1465 zend_arena_release(&CG(arena), checkpoint); 1485 zend_arena_release(&CG(arena), checkpoint); 1534 zend_arena_release(&CG(arena), checkpoint); 1551 zend_arena_release(&CG(arena), checkpoint);
|
/PHP-7.2/ext/standard/tests/strings/ |
H A D | bug68996.phpt | 2 Bug #68996 (Invalid free of CG(interned_empty_string))
|
/PHP-7.2/ext/wddx/tests/ |
H A D | bug68996.phpt | 2 Bug #68996 (Invalid free of CG(interned_empty_string))
|
/PHP-7.2/ext/fileinfo/tests/ |
H A D | bug68996.phpt | 2 Bug #68996 (Invalid free of CG(interned_empty_string))
|
/PHP-7.2/ext/soap/tests/ |
H A D | bug68996.phpt | 2 Bug #68996 (Invalid free of CG(interned_empty_string))
|
/PHP-7.2/ext/standard/ |
H A D | assert.c | 233 call_user_function(CG(function_table), NULL, &ASSERTG(callback), &retval, 3, args); in PHP_FUNCTION() 239 call_user_function(CG(function_table), NULL, &ASSERTG(callback), &retval, 4, args); in PHP_FUNCTION()
|
/PHP-7.2/ext/simplexml/ |
H A D | sxe.c | 201 …if ((pce = zend_hash_str_find_ptr(CG(class_table), "simplexmlelement", sizeof("SimpleXMLElement") … in PHP_MINIT_FUNCTION()
|
/PHP-7.2/ext/readline/ |
H A D | readline.c | 500 …if (call_user_function(CG(function_table), NULL, &_readline_completion, &_readline_array, 3, param… in _readline_completion_cb() 561 call_user_function(CG(function_table), NULL, &_prepped_callback, &dummy, 1, params); in php_rl_callback_handler()
|
/PHP-7.2/sapi/cli/ |
H A D | php_cli.c | 684 CG(in_compilation) = 0; /* not initialized but needed for several options */ in do_cli() 989 CG(start_lineno) = lineno; in do_cli() 1076 CG(start_lineno) = lineno; in do_cli() 1396 CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO; in WinMain()
|
/PHP-7.2/main/ |
H A D | main.c | 1815 shutdown_memory_manager(CG(unclean_shutdown), 0); in php_request_shutdown_for_hook() 1858 if (CG(unclean_shutdown) && PG(last_error_type) == E_ERROR && in php_request_shutdown() 1927 shutdown_memory_manager(CG(unclean_shutdown) || !report_memleaks, 0); in php_request_shutdown() 2475 shutdown_memory_manager(CG(unclean_shutdown), 1); in php_module_shutdown() 2590 if (CG(start_lineno) && prepend_file_p) { in php_execute_script() 2591 int orig_start_lineno = CG(start_lineno); in php_execute_script() 2593 CG(start_lineno) = 0; in php_execute_script() 2595 CG(start_lineno) = orig_start_lineno; in php_execute_script()
|