/php-src/ext/sodium/ |
H A D | libsodium_arginfo.h | 1234 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_box", sizeo… in register_libsodium_symbols() 1236 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_box", sizeo… in register_libsodium_symbols() 1352 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_compare", sizeof("… in register_libsodium_symbols() 1354 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_compare", sizeof("… in register_libsodium_symbols() 1356 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_memcmp", sizeof("s… in register_libsodium_symbols() 1358 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_memcmp", sizeof("s… in register_libsodium_symbols() 1360 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_memzero", sizeof("… in register_libsodium_symbols() 1362 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_pad", sizeof("sodi… in register_libsodium_symbols() 1364 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_unpad", sizeof("so… in register_libsodium_symbols() 1366 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_bin2hex", sizeof("… in register_libsodium_symbols() [all …]
|
/php-src/Zend/ |
H A D | zend.c | 143 if (!CG(multibyte)) { in ZEND_INI_MH() 1286 memset(CG(map_ptr_real_base), 0, CG(map_ptr_last) * sizeof(void*)); in zend_activate() 1378 CG(stack).top = CG(stack).max = 0; \ 1982 if (CG(map_ptr_last) >= CG(map_ptr_size)) { in zend_map_ptr_new() 1985 CG(map_ptr_real_base) = perealloc(CG(map_ptr_real_base), CG(map_ptr_size) * sizeof(void*), 1); in zend_map_ptr_new() 1986 CG(map_ptr_base) = ZEND_MAP_PTR_BIASED_BASE(CG(map_ptr_real_base)); in zend_map_ptr_new() 1988 ptr = (void**)CG(map_ptr_real_base) + CG(map_ptr_last); in zend_map_ptr_new() 1990 CG(map_ptr_last)++; in zend_map_ptr_new() 2002 CG(map_ptr_real_base) = perealloc(CG(map_ptr_real_base), CG(map_ptr_size) * sizeof(void*), 1); in zend_map_ptr_extend() 2003 CG(map_ptr_base) = ZEND_MAP_PTR_BIASED_BASE(CG(map_ptr_real_base)); in zend_map_ptr_extend() [all …]
|
H A D | zend_compile.c | 164 …CG(context).brk_cont_array = erealloc(CG(context).brk_cont_array, sizeof(zend_brk_cont_element) * … in get_next_brk_cont_element() 165 return &CG(context).brk_cont_array[CG(context).last_brk_cont-1]; in get_next_brk_cont_element() 319 CG(context).prev = CG(context).op_array ? prev_context : NULL; in zend_oparray_context_begin() 410 CG(skip_shebang) = 0; in zend_init_compiler_data_structures() 438 memset(&CG(context), 0, sizeof(CG(context))); in init_compiler() 700 CG(context).current_brk_cont = CG(context).last_brk_cont; in zend_begin_loop() 727 = &CG(context).brk_cont_array[CG(context).current_brk_cont]; in zend_end_loop() 1759 if (CG(active_class_entry) && CG(active_class_entry)->parent_name in zend_try_compile_const_expr_resolve_class_name() 2275 …if (CG(active_op_array)->last && CG(active_op_array)->opcodes[CG(active_op_array)->last - 1].opcod… in zend_emit_tick() 7730 if (CG(active_op_array) && CG(active_op_array)->function_name) { in zend_begin_func_decl() [all …]
|
H A D | zend_language_scanner.l | 107 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() 674 CG(ast) = NULL; in zend_compile_string_to_ast() 681 CG(ast) = NULL; in zend_compile_string_to_ast() 685 ast = CG(ast); in zend_compile_string_to_ast() 2218 CG(zend_lineno)++; [all …]
|
H A D | zend_globals_macros.h | 34 # define CG(v) ZEND_TSRMG_FAST(compiler_globals_offset, zend_compiler_globals *, v) macro 36 # define CG(v) (compiler_globals.v)
|
H A D | zend_multibyte.c | 175 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 D | zend_ini_parser.y | 37 #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) 211 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() 258 CG(ini_parser_param) = &ini_parser_param; in zend_parse_ini_string() 264 CG(ini_parser_unbuffered_errors) = unbuffered_errors; in zend_parse_ini_string()
|
H A D | zend_map_ptr.h | 36 ((void**)((char*)CG(map_ptr_base) + offset)) 38 ((void*)(((char*)(ptr)) - ((char*)CG(map_ptr_base))))
|
H A D | zend_inheritance.c | 239 if (!CG(delayed_autoloads)) { in register_unresolved_class() 240 ALLOC_HASHTABLE(CG(delayed_autoloads)); in register_unresolved_class() 375 if (!CG(current_linking_class) || ce == CG(current_linking_class)) { in track_class_dependency() 400 CG(current_linking_class) = NULL; in track_class_dependency() 2789 CG(current_linking_class) = in check_variance_obligation() 2873 if (CG(unlinked_uses) in check_unrecoverable_load_failure() 3141 if (CG(unlinked_uses)) { in zend_do_link_class() 3219 if (CG(current_linking_class)) { in zend_do_link_class() 3229 CG(current_linking_class) = NULL; in zend_do_link_class() 3233 if (!CG(current_linking_class)) { in zend_do_link_class() [all …]
|
H A D | zend_language_parser.y | 623 T_TRAIT { $<num>$ = CG(zend_lineno); } 635 T_ENUM { $<num>$ = CG(zend_lineno); } 1278 CG(extra_fn_flags) = $9; } 1282 T_FN { $$ = CG(zend_lineno); } 1286 T_FUNCTION { $$ = CG(zend_lineno); } 1290 %empty { $$ = CG(doc_comment); CG(doc_comment) = NULL; } 1294 %prec PREC_ARROW_FUNCTION %empty { $$ = CG(extra_fn_flags); CG(extra_fn_flags) = 0; } 1629 if (yyres && CG(parse_error) < 2) { 1630 CG(parse_error) = 2; 1633 if (CG(parse_error) % 2 == 0) { [all …]
|
H A D | zend_extensions.c | 328 size_t functions = zend_hash_num_elements(CG(function_table)); in zend_init_internal_run_time_cache() 330 ZEND_HASH_MAP_FOREACH_PTR(CG(class_table), ce) { in zend_init_internal_run_time_cache() 334 char *ptr = zend_arena_calloc(&CG(arena), functions, rt_size); in zend_init_internal_run_time_cache() 336 ZEND_HASH_MAP_FOREACH_PTR(CG(function_table), zif) { in zend_init_internal_run_time_cache() 343 ZEND_HASH_MAP_FOREACH_PTR(CG(class_table), ce) { in zend_init_internal_run_time_cache()
|
H A D | zend_opcode.c | 683 CG(in_compilation) = 1; in zend_check_finally_breakout() 684 CG(active_op_array) = op_array; in zend_check_finally_breakout() 691 CG(in_compilation) = 1; in zend_check_finally_breakout() 692 CG(active_op_array) = op_array; in zend_check_finally_breakout() 704 jmp_to = &CG(context).brk_cont_array[array_offset]; in zend_get_brk_cont_target() 1045 if (CG(context).vars_size != op_array->last_var) { in pass_two() 1047 CG(context).vars_size = op_array->last_var; in pass_two() 1051 if (CG(context).opcodes_size != op_array->last) { in pass_two() 1053 CG(context).opcodes_size = op_array->last; in pass_two() 1069 CG(context).opcodes_size = op_array->last; in pass_two() [all …]
|
H A D | zend_string.c | 249 ret = zend_interned_string_ht_lookup(str, &CG(interned_strings)); in zend_new_interned_string_request() 267 ret = zend_add_interned_string(str, &CG(interned_strings), 0); in zend_new_interned_string_request() 313 ret = zend_interned_string_ht_lookup_ex(h, str, size, &CG(interned_strings)); in zend_string_init_interned_request() 329 return zend_add_interned_string(ret, &CG(interned_strings), 0); in zend_string_init_interned_request() 340 ret = zend_interned_string_ht_lookup_ex(h, str, size, &CG(interned_strings)); in zend_string_init_existing_interned_request() 353 zend_init_interned_strings_ht(&CG(interned_strings), 0); in zend_interned_strings_activate() 358 zend_hash_destroy(&CG(interned_strings)); in zend_interned_strings_deactivate()
|
H A D | zend_ast.c | 51 ast->lineno = CG(zend_lineno); in zend_ast_create_znode() 160 lineno = CG(zend_lineno); in zend_ast_create_1() 182 lineno = CG(zend_lineno); in zend_ast_create_2() 207 lineno = CG(zend_lineno); in zend_ast_create_3() 235 lineno = CG(zend_lineno); in zend_ast_create_4() 266 lineno = CG(zend_lineno); in zend_ast_create_5() 301 lineno = CG(zend_lineno); in zend_ast_create_list_1() 304 lineno = CG(zend_lineno); in zend_ast_create_list_1() 326 lineno = CG(zend_lineno); in zend_ast_create_list_2() 331 lineno = CG(zend_lineno); in zend_ast_create_list_2() [all …]
|
H A D | zend_stream.c | 271 …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()
|
H A D | zend_observer.c | 96 ZEND_HASH_FOREACH_PTR(CG(function_table), zif) { in zend_observer_post_startup() 100 ZEND_HASH_MAP_FOREACH_PTR(CG(class_table), ce) { in zend_observer_post_startup() 320 if (CG(compiler_options) & ZEND_COMPILE_IGNORE_OBSERVER) { in _zend_observer_function_declared_notify() 338 if (CG(compiler_options) & ZEND_COMPILE_IGNORE_OBSERVER) { in _zend_observer_class_linked_notify()
|
/php-src/ext/openssl/ |
H A D | openssl_arginfo.h | 661 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_csr_sign", sizeof… in register_openssl_symbols() 663 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_csr_new", sizeof(… in register_openssl_symbols() 681 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pbkdf2", sizeof("… in register_openssl_symbols() 689 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_cms_sign", sizeof… in register_openssl_symbols() 707 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_sign", sizeof("op… in register_openssl_symbols() 709 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_seal", sizeof("op… in register_openssl_symbols() 711 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_open", sizeof("op… in register_openssl_symbols() 713 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_open", sizeof("op… in register_openssl_symbols() 715 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_encrypt", sizeof(… in register_openssl_symbols() 717 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_encrypt", sizeof(… in register_openssl_symbols() [all …]
|
/php-src/ext/tokenizer/ |
H A D | tokenizer.c | 370 if (CG(increment_lineno)) { in tokenize() 371 CG(zend_lineno)++; in tokenize() 372 CG(increment_lineno) = 0; in tokenize() 375 token_line = CG(zend_lineno); in tokenize() 465 original_in_compilation = CG(in_compilation); in tokenize_parse() 466 CG(in_compilation) = 1; in tokenize_parse() 475 CG(ast) = NULL; in tokenize_parse() 476 CG(ast_arena) = zend_arena_create(1024 * 32); in tokenize_parse() 487 zend_ast_destroy(CG(ast)); in tokenize_parse() 488 zend_arena_destroy(CG(ast_arena)); in tokenize_parse() [all …]
|
/php-src/ext/opcache/ |
H A D | zend_accelerator_util_funcs.c | 176 CG(in_compilation) = 1; in _zend_accel_function_hash_copy() 178 CG(zend_lineno) = function1->op_array.opcodes[0].lineno; in _zend_accel_function_hash_copy() 227 CG(in_compilation) = 1; in _zend_accel_class_hash_copy() 229 CG(zend_lineno) = ce1->info.user.line_start; in _zend_accel_class_hash_copy() 347 zend_string *orig_compiled_filename = CG(compiled_filename); in zend_accel_do_delayed_early_binding() 348 bool orig_in_compilation = CG(in_compilation); in zend_accel_do_delayed_early_binding() 349 CG(compiled_filename) = persistent_script->script.filename; in zend_accel_do_delayed_early_binding() 350 CG(in_compilation) = 1; in zend_accel_do_delayed_early_binding() 370 CG(compiled_filename) = orig_compiled_filename; in zend_accel_do_delayed_early_binding() 371 CG(in_compilation) = orig_in_compilation; in zend_accel_do_delayed_early_binding() [all …]
|
H A D | ZendAccelerator.c | 3798 CG(in_compilation) = false; 3931 CG(in_compilation) = true; 3965 CG(in_compilation) = false; 3966 CG(compiled_filename) = NULL; 3986 CG(in_compilation) = false; 4315 CG(map_ptr_size) = ZEND_MM_ALIGNED_SIZE_EX(CG(map_ptr_last) + 1, 4096); 4316 CG(map_ptr_real_base) = perealloc(CG(map_ptr_real_base), CG(map_ptr_size) * sizeof(void*), 1); 4317 CG(map_ptr_base) = ZEND_MAP_PTR_BIASED_BASE(CG(map_ptr_real_base)); 4355 CG(skip_shebang) = true; 4387 CG(unclean_shutdown) = true; [all …]
|
/php-src/ext/hash/ |
H A D | hash_arginfo.h | 216 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_hmac", sizeof("hash_… in register_hash_symbols() 218 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_hmac_file", sizeof("… in register_hash_symbols() 220 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_init", sizeof("hash_… in register_hash_symbols() 222 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_pbkdf2", sizeof("has… in register_hash_symbols() 224 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_equals", sizeof("has… in register_hash_symbols() 226 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_equals", sizeof("has… in register_hash_symbols() 228 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_hkdf", sizeof("hash_… in register_hash_symbols()
|
/php-src/Zend/tests/ |
H A D | gh11108.phpt | 2 GH-11108: Incorrect CG(memoize_mode) state after bailout in ??=
|
/php-src/ext/standard/tests/strings/ |
H A D | bug68996.phpt | 2 Bug #68996 (Invalid free of CG(interned_empty_string))
|
/php-src/sapi/fuzzer/ |
H A D | fuzzer-sapi.c | 282 CG(compiled_filename) = NULL; /* ??? */ in fuzzer_do_request_from_buffer() 299 call_user_function(CG(function_table), NULL, &func, &retval, nargs, args); in fuzzer_call_php_func_zval()
|
/php-src/ext/fileinfo/tests/ |
H A D | bug68996.phpt | 2 Bug #68996 (Invalid free of CG(interned_empty_string))
|