Home
last modified time | relevance | path

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

123

/PHP-7.1/Zend/
H A Dzend_string.c88 CG(interned_strings).nTableMask = -CG(interned_strings).nTableSize; in zend_interned_strings_init()
89 HT_SET_DATA_ADDR(&CG(interned_strings), pemalloc(HT_SIZE(&CG(interned_strings)), 1)); in zend_interned_strings_init()
100 memset(CG(one_char_string), 0, sizeof(CG(one_char_string))); in zend_interned_strings_init()
104 zend_known_interned_strings_init(&CG(known_strings), &CG(known_strings_count)); in zend_interned_strings_init()
122 free(CG(known_strings)); in zend_interned_strings_dtor()
123 CG(known_strings) = NULL; in zend_interned_strings_dtor()
158 if (CG(interned_strings).nNumUsed >= CG(interned_strings).nTableSize) { in zend_new_interned_string_int()
164 CG(interned_strings).nTableSize += CG(interned_strings).nTableSize; in zend_new_interned_string_int()
165 CG(interned_strings).nTableMask = -CG(interned_strings).nTableSize; in zend_new_interned_string_int()
174 CG(interned_strings).nTableSize = CG(interned_strings).nTableSize >> 1; in zend_new_interned_string_int()
[all …]
H A Dzend_compile.c319 CG(in_compilation) = 0; in zend_init_compiler_data_structures()
320 CG(start_lineno) = 0; in zend_init_compiler_data_structures()
338 memset(&CG(context), 0, sizeof(CG(context))); in init_compiler()
389 return CG(zend_lineno); in zend_get_compiled_lineno()
687 CG(context).current_brk_cont = CG(context).last_brk_cont; in zend_begin_loop()
714 = &CG(context).brk_cont_array[CG(context).current_brk_cont]; in zend_end_loop()
1696 CG(zend_lineno)++; in zendlex()
1754 if (CG(static_members_table) && n >= CG(last_static_member)) { in zend_initialize_class_data()
2195 …if (CG(active_op_array)->last && CG(active_op_array)->opcodes[CG(active_op_array)->last - 1].opcod… in zend_emit_tick()
4751 CG(context).fast_call_var = get_temporary_variable(CG(active_op_array)); in zend_compile_try()
[all …]
H A Dzend_language_scanner.l111 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 Dzend_opcode.c447 op->lineno = CG(zend_lineno); in init_op()
457 CG(context).opcodes_size *= 4; in get_next_op()
475 CG(context).last_brk_cont++; in get_next_brk_cont_element()
476CG(context).brk_cont_array = erealloc(CG(context).brk_cont_array, sizeof(zend_brk_cont_element) * in get_next_brk_cont_element()
477 return &CG(context).brk_cont_array[CG(context).last_brk_cont-1]; in get_next_brk_cont_element()
519 CG(in_compilation) = 1; in zend_check_finally_breakout()
520 CG(active_op_array) = op_array; in zend_check_finally_breakout()
527 CG(in_compilation) = 1; in zend_check_finally_breakout()
528 CG(active_op_array) = op_array; in zend_check_finally_breakout()
567 CG(context).vars_size = op_array->last_var; in pass_two()
[all …]
H A Dzend_exceptions.c226 zend_update_property_ex(base_ce, &obj, CG(known_strings)[ZEND_STR_FILE], &tmp); in zend_default_exception_new_ex()
229 zend_update_property_ex(base_ce, &obj, CG(known_strings)[ZEND_STR_LINE], &tmp); in zend_default_exception_new_ex()
232 zend_update_property_ex(base_ce, &obj, CG(known_strings)[ZEND_STR_FILE], &tmp); in zend_default_exception_new_ex()
234 zend_update_property_ex(base_ce, &obj, CG(known_strings)[ZEND_STR_LINE], &tmp); in zend_default_exception_new_ex()
311 …et_property(i_get_exception_base(object), object, ZSTR_VAL(CG(known_strings)[id]), ZSTR_LEN(CG(kno…
554 file = zend_hash_find(ht, CG(known_strings)[ZEND_STR_FILE]); in _build_trace_string()
561 tmp = zend_hash_find(ht, CG(known_strings)[ZEND_STR_LINE]); in _build_trace_string()
580 TRACE_APPEND_KEY(CG(known_strings)[ZEND_STR_CLASS]); in _build_trace_string()
581 TRACE_APPEND_KEY(CG(known_strings)[ZEND_STR_TYPE]); in _build_trace_string()
582 TRACE_APPEND_KEY(CG(known_strings)[ZEND_STR_FUNCTION]); in _build_trace_string()
[all …]
H A Dzend_ini_parser.y41 #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)
209 if (CG(ini_parser_unbuffered_errors)) { in ini_error()
230 CG(ini_parser_param) = &ini_parser_param; in zend_parse_ini_file()
236 CG(ini_parser_unbuffered_errors) = unbuffered_errors; in zend_parse_ini_file()
259 CG(ini_parser_param) = &ini_parser_param; in zend_parse_ini_string()
265 CG(ini_parser_unbuffered_errors) = unbuffered_errors; in zend_parse_ini_string()
H A Dzend.c92 if (!CG(multibyte)) { in ZEND_INI_MH()
919 CG(parse_error) = 0; in zenderror()
938 CG(unclean_shutdown) = 1; in BEGIN_EXTERN_C()
939 CG(active_class_entry) = NULL; in BEGIN_EXTERN_C()
940 CG(in_compilation) = 0; in BEGIN_EXTERN_C()
1053 if (CG(stack).top) { \
1055 CG(stack).top = CG(stack).max = 0; \
1056 CG(stack).elements = NULL; \
1254 CG(active_class_entry) = NULL; in zend_error()
1257 CG(in_compilation) = 0; in zend_error()
[all …]
H A Dzend_globals_macros.h34 # define CG(v) ZEND_TSRMG(compiler_globals_id, zend_compiler_globals *, v) macro
36 # define CG(v) (compiler_globals.v)
H A Dzend_multibyte.c177 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 Dzend_language_parser.y266 top_statement_list { CG(ast) = $1; }
502 | T_CLASS { $<num>$ = CG(zend_lineno); }
518 T_TRAIT { $<num>$ = CG(zend_lineno); }
524 T_INTERFACE { $<num>$ = CG(zend_lineno); }
989 T_FUNCTION { $$ = CG(zend_lineno); }
993 /* empty */ { $$ = CG(doc_comment); CG(doc_comment) = NULL; }
997 /* empty */ { $$ = CG(extra_fn_flags); CG(extra_fn_flags) = 0; }
1299 if (yyres && CG(parse_error) < 2) {
1300 CG(parse_error) = 2;
1303 if (CG(parse_error) % 2 == 0) {
[all …]
H A Dzend_builtin_functions.c776 zend_hash_add_new(Z_ARRVAL_P(return_value), CG(known_strings)[ZEND_STR_KEY], &tmp); in ZEND_FUNCTION()
2719 ZVAL_INTERNED_STR(&tmp, CG(known_strings)[ZEND_STR_OBJECT_OPERATOR]); in zend_fetch_debug_backtrace()
2724 ZVAL_INTERNED_STR(&tmp, CG(known_strings)[ZEND_STR_PAAMAYIM_NEKUDOTAYIM]); in zend_fetch_debug_backtrace()
2741 pseudo_function_name = CG(known_strings)[ZEND_STR_UNKNOWN]; in zend_fetch_debug_backtrace()
2746 pseudo_function_name = CG(known_strings)[ZEND_STR_EVAL]; in zend_fetch_debug_backtrace()
2750 pseudo_function_name = CG(known_strings)[ZEND_STR_INCLUDE]; in zend_fetch_debug_backtrace()
2753 pseudo_function_name = CG(known_strings)[ZEND_STR_REQUIRE]; in zend_fetch_debug_backtrace()
2756 pseudo_function_name = CG(known_strings)[ZEND_STR_INCLUDE_ONCE]; in zend_fetch_debug_backtrace()
2759 pseudo_function_name = CG(known_strings)[ZEND_STR_REQUIRE_ONCE]; in zend_fetch_debug_backtrace()
2764 pseudo_function_name = CG(known_strings)[ZEND_STR_UNKNOWN]; in zend_fetch_debug_backtrace()
[all …]
H A Dzend_language_scanner.c113 CG(zend_lineno)++; \
181 CG(parse_error) = 0; in startup_scanner()
194 CG(parse_error) = 0; in shutdown_scanner()
449 if (!CG(script_encoding_list) || !CG(script_encoding_list_size)) { in zend_multibyte_find_script_encoding()
532 if (CG(multibyte)) { in open_file_for_scanning()
566 CG(zend_lineno) = CG(start_lineno); in open_file_for_scanning()
584 CG(ast) = NULL; in END_EXTERN_C()
702 if (CG(multibyte)) { in zend_prepare_string_for_scanning()
724 CG(zend_lineno) = 1; in zend_prepare_string_for_scanning()
1073 CG(zend_lineno)++; in zend_scan_escape_string()
[all …]
H A Dzend_execute_API.c146 EG(function_table) = CG(function_table); in init_executor()
147 EG(class_table) = CG(class_table); in init_executor()
235 if (CG(unclean_shutdown)) { in shutdown_destructors()
276 if (CG(unclean_shutdown)) { in shutdown_executor()
345 zend_llist_destroy(&CG(open_files)); in shutdown_executor()
357 if (GC_G(gc_enabled) && !CG(unclean_shutdown)) { in shutdown_executor()
403 if (EG(ht_iterators_used) && !CG(unclean_shutdown)) { in shutdown_executor()
973 …zend_function *func = zend_hash_find_ptr(EG(function_table), CG(known_strings)[ZEND_STR_MAGIC_AUTO… in zend_lookup_class_ex()
1106 original_compiler_options = CG(compiler_options); in zend_eval_stringl()
1107 CG(compiler_options) = ZEND_COMPILE_DEFAULT_FOR_EVAL; in zend_eval_stringl()
[all …]
H A Dzend_operators.c534 if (CG(one_char_string)['1']) { in _convert_to_string()
535 ZVAL_INTERNED_STR(op, CG(one_char_string)['1']); in _convert_to_string()
865 if (CG(one_char_string)['1']) { in _zval_get_string_func()
866 return CG(one_char_string)['1']; in _zval_get_string_func()
1248 if (EG(current_execute_data) && !CG(in_compilation)) { in mod_function()
1364 if (CG(one_char_string)[not]) { in bitwise_not_function()
1413 if (CG(one_char_string)[or]) { in bitwise_or_function()
1489 if (CG(one_char_string)[and]) { in bitwise_and_function()
1565 if (CG(one_char_string)[xor]) { in bitwise_xor_function()
2270 if (CG(one_char_string)['1']) { in increment_string()
[all …]
H A Dzend_closures.c57 …if (call_user_function_ex(CG(function_table), NULL, getThis(), return_value, ZEND_NUM_ARGS(), argu… in ZEND_METHOD()
366 invoke->internal_function.function_name = CG(known_strings)[ZEND_STR_MAGIC_INVOKE]; in zend_get_closure_invoke_method()
507 zend_hash_update(debug_info, CG(known_strings)[ZEND_STR_STATIC], &val); in zend_closure_get_debug_info()
512 zend_hash_update(debug_info, CG(known_strings)[ZEND_STR_THIS], &closure->this_ptr); in zend_closure_get_debug_info()
673 func->op_array.run_time_cache = zend_arena_alloc(&CG(arena), func->op_array.cache_size); in zend_create_closure()
/PHP-7.1/ext/tokenizer/
H A Dtokenizer.c133 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()
235 original_in_compilation = CG(in_compilation); in tokenize_parse()
236 CG(in_compilation) = 1; in tokenize_parse()
243 CG(ast) = NULL; in tokenize_parse()
255 zend_ast_destroy(CG(ast)); in tokenize_parse()
256 zend_arena_destroy(CG(ast_arena)); in tokenize_parse()
[all …]
/PHP-7.1/ext/opcache/
H A Dzend_accelerator_util_funcs.c503 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 DZendAccelerator.c524 CG(empty_string) = accel_new_interned_string(CG(empty_string)); in accel_use_shm_interned_strings()
532 CG(known_strings)[j] = accel_new_interned_string(CG(known_strings)[j]); in accel_use_shm_interned_strings()
537 p = CG(function_table)->arData + idx; in accel_use_shm_interned_strings()
551 p = CG(class_table)->arData + idx; in accel_use_shm_interned_strings()
613 p = CG(auto_globals)->arData + idx; in accel_use_shm_interned_strings()
1546 orig_function_table = CG(function_table); in opcache_compile_file()
1547 orig_class_table = CG(class_table); in opcache_compile_file()
2424 CG(unclean_shutdown) = 1; in zend_accel_fast_shutdown()
2969 zend_hash_clean(CG(auto_globals));
2970 zend_hash_clean(CG(function_table));
[all …]
H A Dzend_file_cache.c1399 checkpoint = zend_arena_checkpoint(CG(arena)); in zend_file_cache_script_load()
1402 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size + 64); in zend_file_cache_script_load()
1405 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size); in zend_file_cache_script_load()
1413 zend_arena_release(&CG(arena), checkpoint); in zend_file_cache_script_load()
1427 zend_arena_release(&CG(arena), checkpoint); in zend_file_cache_script_load()
1447 zend_arena_release(&CG(arena), checkpoint); in zend_file_cache_script_load()
1496 zend_arena_release(&CG(arena), checkpoint); in zend_file_cache_script_load()
1511 zend_arena_release(&CG(arena), checkpoint); in zend_file_cache_script_load()
/PHP-7.1/ext/standard/tests/strings/
H A Dbug68996.phpt2 Bug #68996 (Invalid free of CG(interned_empty_string))
/PHP-7.1/ext/wddx/tests/
H A Dbug68996.phpt2 Bug #68996 (Invalid free of CG(interned_empty_string))
/PHP-7.1/ext/fileinfo/tests/
H A Dbug68996.phpt2 Bug #68996 (Invalid free of CG(interned_empty_string))
/PHP-7.1/ext/soap/tests/
H A Dbug68996.phpt2 Bug #68996 (Invalid free of CG(interned_empty_string))
/PHP-7.1/ext/standard/
H A Dassert.c229 call_user_function(CG(function_table), NULL, &ASSERTG(callback), &retval, 3, args); in PHP_FUNCTION()
235 call_user_function(CG(function_table), NULL, &ASSERTG(callback), &retval, 4, args); in PHP_FUNCTION()
/PHP-7.1/ext/simplexml/
H A Dsxe.c201 …if ((pce = zend_hash_str_find_ptr(CG(class_table), "simplexmlelement", sizeof("SimpleXMLElement") … in PHP_MINIT_FUNCTION()

Completed in 155 milliseconds

123