/PHP-7.0/Zend/ |
H A D | zend_string.c | 52 CG(interned_strings).nTableMask = -CG(interned_strings).nTableSize; in zend_interned_strings_init() 53 HT_SET_DATA_ADDR(&CG(interned_strings), pemalloc(HT_SIZE(&CG(interned_strings)), 1)); in zend_interned_strings_init() 54 HT_HASH_RESET(&CG(interned_strings)); in zend_interned_strings_init() 64 memset(CG(one_char_string), 0, sizeof(CG(one_char_string))); in zend_interned_strings_init() 107 if (CG(interned_strings).nNumUsed >= CG(interned_strings).nTableSize) { in zend_new_interned_string_int() 114 CG(interned_strings).nTableSize += CG(interned_strings).nTableSize; in zend_new_interned_string_int() 115 CG(interned_strings).nTableMask = -CG(interned_strings).nTableSize; in zend_new_interned_string_int() 120 … memcpy(CG(interned_strings).arData, old_buckets, sizeof(Bucket) * CG(interned_strings).nNumUsed); in zend_new_interned_string_int() 124 CG(interned_strings).nTableSize = CG(interned_strings).nTableSize >> 1; in zend_new_interned_string_int() 125 CG(interned_strings).nTableMask = -CG(interned_strings).nTableSize; in zend_new_interned_string_int() [all …]
|
H A D | zend_compile.c | 300 CG(in_compilation) = 0; in zend_init_compiler_data_structures() 301 CG(start_lineno) = 0; in zend_init_compiler_data_structures() 319 memset(&CG(context), 0, sizeof(CG(context))); in init_compiler() 579 CG(context).current_brk_cont = CG(active_op_array)->last_brk_cont; in zend_begin_loop() 603 = &CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont]; in zend_end_loop() 670 opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1]; in zend_do_free() 1580 CG(zend_lineno)++; in zendlex() 1639 if (CG(static_members_table) && n >= CG(last_static_member)) { in zend_initialize_class_data() 1919 …if (CG(active_op_array)->last && CG(active_op_array)->opcodes[CG(active_op_array)->last - 1].opcod… in zend_emit_tick() 2262 CG(active_op_array)->this_var = lookup_cv(CG(active_op_array), key); in zend_compile_simple_var_no_cv() [all …]
|
H A D | zend_language_scanner.l | 111 CG(zend_lineno)++; \ 179 CG(parse_error) = 0; in startup_scanner() 191 CG(parse_error) = 0; in shutdown_scanner() 442 if (!CG(script_encoding_list) || !CG(script_encoding_list_size)) { in zend_multibyte_find_script_encoding() 559 CG(zend_lineno) = CG(start_lineno); in open_file_for_scanning() 589 CG(ast) = NULL; in END_EXTERN_C() 687 if (CG(multibyte)) { in zend_prepare_string_for_scanning() 709 CG(zend_lineno) = 1; in zend_prepare_string_for_scanning() 756 CG(ast) = NULL; in compile_string() 1086 CG(zend_lineno)++; in zend_scan_escape_string() [all …]
|
H A D | zend.c | 92 if (!CG(multibyte)) { in ZEND_INI_MH() 899 CG(parse_error) = 0; in zenderror() 918 CG(unclean_shutdown) = 1; in BEGIN_EXTERN_C() 919 CG(active_class_entry) = NULL; in BEGIN_EXTERN_C() 920 CG(in_compilation) = 0; in BEGIN_EXTERN_C() 1033 if (CG(stack).top) { \ 1035 CG(stack).top = CG(stack).max = 0; \ 1036 CG(stack).elements = NULL; \ 1234 CG(active_class_entry) = NULL; in zend_error() 1237 CG(in_compilation) = 0; in zend_error() [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) 202 if (CG(ini_parser_unbuffered_errors)) { in ini_error() 223 CG(ini_parser_param) = &ini_parser_param; in zend_parse_ini_file() 229 CG(ini_parser_unbuffered_errors) = unbuffered_errors; in zend_parse_ini_file() 252 CG(ini_parser_param) = &ini_parser_param; in zend_parse_ini_string() 258 CG(ini_parser_unbuffered_errors) = unbuffered_errors; in zend_parse_ini_string()
|
H A D | zend_opcode.c | 427 op->lineno = CG(zend_lineno); in init_op() 436 if (next_op_num >= CG(context).opcodes_size) { in get_next_op() 437 CG(context).opcodes_size *= 4; in get_next_op() 499 CG(in_compilation) = 1; in zend_check_finally_breakout() 500 CG(active_op_array) = op_array; in zend_check_finally_breakout() 507 CG(in_compilation) = 1; in zend_check_finally_breakout() 508 CG(active_op_array) = op_array; in zend_check_finally_breakout() 593 if (CG(context).vars_size != op_array->last_var) { in pass_two() 595 CG(context).vars_size = op_array->last_var; in pass_two() 597 if (CG(context).opcodes_size != op_array->last) { in pass_two() [all …]
|
H A D | zend_multibyte.c | 170 if (CG(script_encoding_list)) { in zend_multibyte_set_script_encoding() 171 free((char*)CG(script_encoding_list)); in zend_multibyte_set_script_encoding() 173 CG(script_encoding_list) = encoding_list; in zend_multibyte_set_script_encoding() 174 CG(script_encoding_list_size) = encoding_list_size; in zend_multibyte_set_script_encoding()
|
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_language_scanner.c | 113 CG(zend_lineno)++; \ 181 CG(parse_error) = 0; in startup_scanner() 193 CG(parse_error) = 0; in shutdown_scanner() 444 if (!CG(script_encoding_list) || !CG(script_encoding_list_size)) { in zend_multibyte_find_script_encoding() 561 CG(zend_lineno) = CG(start_lineno); in open_file_for_scanning() 591 CG(ast) = NULL; in END_EXTERN_C() 689 if (CG(multibyte)) { in zend_prepare_string_for_scanning() 711 CG(zend_lineno) = 1; in zend_prepare_string_for_scanning() 758 CG(ast) = NULL; in compile_string() 1088 CG(zend_lineno)++; in zend_scan_escape_string() [all …]
|
H A D | zend_language_parser.y | 265 top_statement_list { CG(ast) = $1; } 493 class_modifiers T_CLASS { $<num>$ = CG(zend_lineno); } 496 | T_CLASS { $<num>$ = CG(zend_lineno); } 512 T_TRAIT { $<num>$ = CG(zend_lineno); } 518 T_INTERFACE { $<num>$ = CG(zend_lineno); } 975 T_FUNCTION { $$ = CG(zend_lineno); } 979 /* empty */ { $$ = CG(doc_comment); CG(doc_comment) = NULL; } 1287 if (yyres && CG(parse_error) < 2) { 1288 CG(parse_error) = 2; 1291 if (CG(parse_error) % 2 == 0) { [all …]
|
H A D | zend_execute_API.c | 143 EG(function_table) = CG(function_table); in init_executor() 144 EG(class_table) = CG(class_table); in init_executor() 233 if (CG(unclean_shutdown)) { in shutdown_destructors() 274 if (CG(unclean_shutdown)) { in shutdown_executor() 343 zend_llist_destroy(&CG(open_files)); in shutdown_executor() 355 if (GC_G(gc_enabled) && !CG(unclean_shutdown)) { in shutdown_executor() 401 if (EG(ht_iterators_used) && !CG(unclean_shutdown)) { in shutdown_executor() 1125 original_compiler_options = CG(compiler_options); in zend_eval_stringl() 1126 CG(compiler_options) = ZEND_COMPILE_DEFAULT_FOR_EVAL; in zend_eval_stringl() 1128 CG(compiler_options) = original_compiler_options; in zend_eval_stringl()
|
H A D | zend_operators.c | 530 if (CG(one_char_string)['1']) { in _convert_to_string() 531 ZVAL_INTERNED_STR(op, CG(one_char_string)['1']); in _convert_to_string() 829 if (CG(one_char_string)['1']) { in _zval_get_string_func() 830 return CG(one_char_string)['1']; in _zval_get_string_func() 1233 if (EG(current_execute_data) && !CG(in_compilation)) { in mod_function() 1349 if (CG(one_char_string)[not]) { in bitwise_not_function() 1398 if (CG(one_char_string)[or]) { in bitwise_or_function() 1474 if (CG(one_char_string)[and]) { in bitwise_and_function() 1550 if (CG(one_char_string)[xor]) { in bitwise_xor_function() 2255 if (CG(one_char_string)['1']) { in increment_string() [all …]
|
H A D | zend_compile.h | 49 if (CG(doc_comment)) { \ 50 zend_string_release(CG(doc_comment)); \ 51 CG(doc_comment) = NULL; \ 567 CT_CONSTANT_EX(CG(active_op_array), (node).constant)
|
/PHP-7.0/ext/tokenizer/ |
H A D | tokenizer.c | 133 CG(zend_lineno)++; in tokenize() 140 if (CG(increment_lineno)) { in tokenize() 141 token_line = ++CG(zend_lineno); in tokenize() 142 CG(increment_lineno) = 0; in tokenize() 177 token_line = CG(zend_lineno); in tokenize() 236 original_in_compilation = CG(in_compilation); in tokenize_parse() 237 CG(in_compilation) = 1; in tokenize_parse() 241 CG(ast) = NULL; in tokenize_parse() 253 zend_ast_destroy(CG(ast)); in tokenize_parse() 254 zend_arena_destroy(CG(ast_arena)); in tokenize_parse() [all …]
|
/PHP-7.0/ext/opcache/ |
H A D | zend_accelerator_util_funcs.c | 553 CG(in_compilation) = 1; in zend_accel_function_hash_copy() 555 CG(zend_lineno) = function1->op_array.opcodes[0].lineno; in zend_accel_function_hash_copy() 597 CG(in_compilation) = 1; in zend_accel_function_hash_copy_from_shm() 599 CG(zend_lineno) = function1->op_array.opcodes[0].lineno; in zend_accel_function_hash_copy_from_shm() 630 CG(in_compilation) = 1; in zend_accel_class_hash_copy() 632 CG(zend_lineno) = ce1->info.user.line_start; in zend_accel_class_hash_copy() 694 ZCG(arena_mem) = zend_arena_alloc(&CG(arena), persistent_script->arena_size + 64); in zend_accel_load_script() 698 ZCG(arena_mem) = zend_arena_alloc(&CG(arena), persistent_script->arena_size); in zend_accel_load_script() 738 zend_string *orig_compiled_filename = CG(compiled_filename); in zend_accel_load_script() 739 CG(compiled_filename) = persistent_script->full_path; in zend_accel_load_script() [all …]
|
H A D | ZendAccelerator.c | 521 CG(empty_string) = accel_new_interned_string(CG(empty_string)); in accel_use_shm_interned_strings() 531 p = CG(function_table)->arData + idx; in accel_use_shm_interned_strings() 545 p = CG(class_table)->arData + idx; in accel_use_shm_interned_strings() 607 p = CG(auto_globals)->arData + idx; in accel_use_shm_interned_strings() 1522 orig_function_table = CG(function_table); in opcache_compile_file() 1523 orig_class_table = CG(class_table); in opcache_compile_file() 1547 CG(function_table) = orig_function_table; in opcache_compile_file() 2380 CG(unclean_shutdown) = 1; in zend_accel_fast_shutdown() 2912 zend_hash_clean(CG(auto_globals)); 2913 zend_hash_clean(CG(function_table)); [all …]
|
H A D | zend_file_cache.c | 1321 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_file_cache_script_load() 1324 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size + 64); in zend_file_cache_script_load() 1327 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size); in zend_file_cache_script_load() 1335 zend_arena_release(&CG(arena), checkpoint); in zend_file_cache_script_load() 1349 zend_arena_release(&CG(arena), checkpoint); in zend_file_cache_script_load() 1369 zend_arena_release(&CG(arena), checkpoint); in zend_file_cache_script_load() 1418 zend_arena_release(&CG(arena), checkpoint); in zend_file_cache_script_load() 1433 zend_arena_release(&CG(arena), checkpoint); in zend_file_cache_script_load()
|
/PHP-7.0/ext/standard/tests/strings/ |
H A D | bug68996.phpt | 2 Bug #68996 (Invalid free of CG(interned_empty_string))
|
/PHP-7.0/ext/wddx/tests/ |
H A D | bug68996.phpt | 2 Bug #68996 (Invalid free of CG(interned_empty_string))
|
/PHP-7.0/ext/fileinfo/tests/ |
H A D | bug68996.phpt | 2 Bug #68996 (Invalid free of CG(interned_empty_string))
|
/PHP-7.0/ext/soap/tests/ |
H A D | bug68996.phpt | 2 Bug #68996 (Invalid free of CG(interned_empty_string))
|
/PHP-7.0/ext/standard/ |
H A D | assert.c | 228 call_user_function(CG(function_table), NULL, &ASSERTG(callback), &retval, 3, args); in PHP_FUNCTION() 234 call_user_function(CG(function_table), NULL, &ASSERTG(callback), &retval, 4, args); in PHP_FUNCTION()
|
/PHP-7.0/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.0/ext/readline/ |
H A D | readline.c | 490 …if (call_user_function(CG(function_table), NULL, &_readline_completion, &_readline_array, 3, param… in _readline_completion_cb() 552 call_user_function(CG(function_table), NULL, &_prepped_callback, &dummy, 1, params); in php_rl_callback_handler()
|
/PHP-7.0/sapi/cli/ |
H A D | php_cli.c | 672 CG(in_compilation) = 0; /* not initialized but needed for several options */ in do_cli() 955 CG(start_lineno) = lineno; in do_cli() 1042 CG(start_lineno) = lineno; in do_cli() 1340 CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO; in WinMain()
|