/PHP-8.2/ext/sodium/ |
H A D | libsodium_arginfo.h | 1111 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_box", sizeo… in register_libsodium_symbols() 1113 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_box", sizeo… in register_libsodium_symbols() 1229 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_compare", sizeof("… in register_libsodium_symbols() 1231 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_compare", sizeof("… in register_libsodium_symbols() 1233 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_memcmp", sizeof("s… in register_libsodium_symbols() 1235 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_memcmp", sizeof("s… in register_libsodium_symbols() 1237 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_memzero", sizeof("… in register_libsodium_symbols() 1239 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_pad", sizeof("sodi… in register_libsodium_symbols() 1241 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_unpad", sizeof("so… in register_libsodium_symbols() 1243 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_bin2hex", sizeof("… in register_libsodium_symbols() [all …]
|
/PHP-8.2/ext/openssl/ |
H A D | openssl_arginfo.h | 651 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_csr_sign", sizeof… in register_openssl_symbols() 653 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_csr_new", sizeof(… in register_openssl_symbols() 671 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pbkdf2", sizeof("… in register_openssl_symbols() 679 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_cms_sign", sizeof… in register_openssl_symbols() 697 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_sign", sizeof("op… in register_openssl_symbols() 699 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_seal", sizeof("op… in register_openssl_symbols() 701 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_open", sizeof("op… in register_openssl_symbols() 703 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_open", sizeof("op… in register_openssl_symbols() 705 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_encrypt", sizeof(… in register_openssl_symbols() 707 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_encrypt", sizeof(… in register_openssl_symbols() [all …]
|
/PHP-8.2/Zend/ |
H A D | zend.c | 136 if (!CG(multibyte)) { in ZEND_INI_MH() 1243 memset(CG(map_ptr_real_base), 0, CG(map_ptr_last) * sizeof(void*)); in zend_activate() 1344 CG(stack).top = CG(stack).max = 0; \ 1904 if (CG(map_ptr_last) >= CG(map_ptr_size)) { in zend_map_ptr_new() 1907 CG(map_ptr_real_base) = perealloc(CG(map_ptr_real_base), CG(map_ptr_size) * sizeof(void*), 1); in zend_map_ptr_new() 1908 CG(map_ptr_base) = ZEND_MAP_PTR_BIASED_BASE(CG(map_ptr_real_base)); in zend_map_ptr_new() 1910 ptr = (void**)CG(map_ptr_real_base) + CG(map_ptr_last); in zend_map_ptr_new() 1912 CG(map_ptr_last)++; in zend_map_ptr_new() 1924 CG(map_ptr_real_base) = perealloc(CG(map_ptr_real_base), CG(map_ptr_size) * sizeof(void*), 1); in zend_map_ptr_extend() 1925 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 | 134 …CG(context).brk_cont_array = erealloc(CG(context).brk_cont_array, sizeof(zend_brk_cont_element) * … in get_next_brk_cont_element() 135 return &CG(context).brk_cont_array[CG(context).last_brk_cont-1]; in get_next_brk_cont_element() 377 CG(skip_shebang) = 0; in zend_init_compiler_data_structures() 381 CG(memoize_mode) = 0; in zend_init_compiler_data_structures() 405 memset(&CG(context), 0, sizeof(CG(context))); in init_compiler() 667 CG(context).current_brk_cont = CG(context).last_brk_cont; in zend_begin_loop() 694 = &CG(context).brk_cont_array[CG(context).current_brk_cont]; in zend_end_loop() 1615 if (CG(active_class_entry) && CG(active_class_entry)->parent_name in zend_try_compile_const_expr_resolve_class_name() 1834 CG(zend_lineno)++; in zendlex() 2129 …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 | 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() 2202 CG(zend_lineno)++; [all …]
|
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) 204 if (CG(ini_parser_unbuffered_errors)) { in ini_error() 224 CG(ini_parser_param) = &ini_parser_param; in zend_parse_ini_file() 230 CG(ini_parser_unbuffered_errors) = unbuffered_errors; in zend_parse_ini_file() 251 CG(ini_parser_param) = &ini_parser_param; in zend_parse_ini_string() 257 CG(ini_parser_unbuffered_errors) = unbuffered_errors; in zend_parse_ini_string()
|
H A D | zend_globals_macros.h | 32 # define CG(v) ZEND_TSRMG_FAST(compiler_globals_offset, zend_compiler_globals *, v) macro 34 # 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_map_ptr.h | 34 ((void**)((char*)CG(map_ptr_base) + offset)) 36 ((void*)(((char*)(ptr)) - ((char*)CG(map_ptr_base))))
|
H A D | zend_inheritance.c | 236 if (!CG(delayed_autoloads)) { in register_unresolved_class() 237 ALLOC_HASHTABLE(CG(delayed_autoloads)); in register_unresolved_class() 372 if (!CG(current_linking_class) || ce == CG(current_linking_class)) { in track_class_dependency() 397 CG(current_linking_class) = NULL; in track_class_dependency() 2636 CG(current_linking_class) = in check_variance_obligation() 2712 if (CG(unlinked_uses) in check_unrecoverable_load_failure() 2980 if (CG(unlinked_uses)) { in zend_do_link_class() 3057 if (CG(current_linking_class)) { in zend_do_link_class() 3067 CG(current_linking_class) = NULL; in zend_do_link_class() 3071 if (!CG(current_linking_class)) { in zend_do_link_class() [all …]
|
H A D | zend_language_parser.y | 612 T_TRAIT { $<num>$ = CG(zend_lineno); } 624 T_ENUM { $<num>$ = CG(zend_lineno); } 1237 CG(extra_fn_flags) = $9; } 1241 T_FN { $$ = CG(zend_lineno); } 1245 T_FUNCTION { $$ = CG(zend_lineno); } 1249 %empty { $$ = CG(doc_comment); CG(doc_comment) = NULL; } 1253 %prec PREC_ARROW_FUNCTION %empty { $$ = CG(extra_fn_flags); CG(extra_fn_flags) = 0; } 1582 if (yyres && CG(parse_error) < 2) { 1583 CG(parse_error) = 2; 1586 if (CG(parse_error) % 2 == 0) { [all …]
|
H A D | zend_extensions.c | 290 size_t functions = zend_hash_num_elements(CG(function_table)); in zend_init_internal_run_time_cache() 292 ZEND_HASH_MAP_FOREACH_PTR(CG(class_table), ce) { in zend_init_internal_run_time_cache() 296 char *ptr = zend_arena_calloc(&CG(arena), functions, rt_size); in zend_init_internal_run_time_cache() 298 ZEND_HASH_MAP_FOREACH_PTR(CG(function_table), zif) { in zend_init_internal_run_time_cache() 305 ZEND_HASH_MAP_FOREACH_PTR(CG(class_table), ce) { in zend_init_internal_run_time_cache()
|
H A D | zend_string.c | 236 ret = zend_interned_string_ht_lookup(str, &CG(interned_strings)); in zend_new_interned_string_request() 257 ret = zend_add_interned_string(str, &CG(interned_strings), 0); in zend_new_interned_string_request() 303 ret = zend_interned_string_ht_lookup_ex(h, str, size, &CG(interned_strings)); in zend_string_init_interned_request() 319 return zend_add_interned_string(ret, &CG(interned_strings), 0); in zend_string_init_interned_request() 330 ret = zend_interned_string_ht_lookup_ex(h, str, size, &CG(interned_strings)); in zend_string_init_existing_interned_request() 343 zend_init_interned_strings_ht(&CG(interned_strings), 0); in zend_interned_strings_activate() 348 zend_hash_destroy(&CG(interned_strings)); in zend_interned_strings_deactivate()
|
H A D | zend_opcode.c | 663 CG(in_compilation) = 1; in zend_check_finally_breakout() 664 CG(active_op_array) = op_array; in zend_check_finally_breakout() 671 CG(in_compilation) = 1; in zend_check_finally_breakout() 672 CG(active_op_array) = op_array; in zend_check_finally_breakout() 684 jmp_to = &CG(context).brk_cont_array[array_offset]; in zend_get_brk_cont_target() 1025 if (CG(context).vars_size != op_array->last_var) { in pass_two() 1027 CG(context).vars_size = op_array->last_var; in pass_two() 1031 if (CG(context).opcodes_size != op_array->last) { in pass_two() 1033 CG(context).opcodes_size = op_array->last; in pass_two() 1049 CG(context).opcodes_size = op_array->last; in pass_two() [all …]
|
H A D | zend_ast.c | 51 ast->lineno = CG(zend_lineno); in zend_ast_create_znode() 161 lineno = CG(zend_lineno); in zend_ast_create_1() 183 lineno = CG(zend_lineno); in zend_ast_create_2() 208 lineno = CG(zend_lineno); in zend_ast_create_3() 236 lineno = CG(zend_lineno); in zend_ast_create_4() 267 lineno = CG(zend_lineno); in zend_ast_create_5() 302 lineno = CG(zend_lineno); in zend_ast_create_list_1() 305 lineno = CG(zend_lineno); in zend_ast_create_list_1() 327 lineno = CG(zend_lineno); in zend_ast_create_list_2() 332 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 | 90 ZEND_HASH_FOREACH_PTR(CG(function_table), zif) { in zend_observer_post_startup() 94 ZEND_HASH_MAP_FOREACH_PTR(CG(class_table), ce) { in zend_observer_post_startup() 307 if (CG(compiler_options) & ZEND_COMPILE_IGNORE_OBSERVER) { in _zend_observer_function_declared_notify() 325 if (CG(compiler_options) & ZEND_COMPILE_IGNORE_OBSERVER) { in _zend_observer_class_linked_notify()
|
/PHP-8.2/ext/opcache/ |
H A D | zend_accelerator_util_funcs.c | 171 CG(in_compilation) = 1; in _zend_accel_function_hash_copy() 173 CG(zend_lineno) = function1->op_array.opcodes[0].lineno; in _zend_accel_function_hash_copy() 222 CG(in_compilation) = 1; in _zend_accel_class_hash_copy() 224 CG(zend_lineno) = ce1->info.user.line_start; in _zend_accel_class_hash_copy() 344 zend_string *orig_compiled_filename = CG(compiled_filename); in zend_accel_do_delayed_early_binding() 345 bool orig_in_compilation = CG(in_compilation); in zend_accel_do_delayed_early_binding() 346 CG(compiled_filename) = persistent_script->script.filename; in zend_accel_do_delayed_early_binding() 347 CG(in_compilation) = 1; in zend_accel_do_delayed_early_binding() 366 CG(compiled_filename) = orig_compiled_filename; in zend_accel_do_delayed_early_binding() 367 CG(in_compilation) = orig_in_compilation; in zend_accel_do_delayed_early_binding() [all …]
|
H A D | ZendAccelerator.c | 3818 CG(in_compilation) = false; 3951 CG(in_compilation) = true; 3985 CG(in_compilation) = false; 3986 CG(compiled_filename) = NULL; 4006 CG(in_compilation) = false; 4337 CG(map_ptr_size) = ZEND_MM_ALIGNED_SIZE_EX(CG(map_ptr_last) + 1, 4096); 4338 CG(map_ptr_real_base) = perealloc(CG(map_ptr_real_base), CG(map_ptr_size) * sizeof(void*), 1); 4339 CG(map_ptr_base) = ZEND_MAP_PTR_BIASED_BASE(CG(map_ptr_real_base)); 4377 CG(skip_shebang) = true; 4409 CG(unclean_shutdown) = true; [all …]
|
/PHP-8.2/ext/tokenizer/ |
H A D | tokenizer.c | 371 if (CG(increment_lineno)) { in tokenize() 372 CG(zend_lineno)++; in tokenize() 373 CG(increment_lineno) = 0; in tokenize() 376 token_line = CG(zend_lineno); in tokenize() 466 original_in_compilation = CG(in_compilation); in tokenize_parse() 467 CG(in_compilation) = 1; in tokenize_parse() 476 CG(ast) = NULL; in tokenize_parse() 477 CG(ast_arena) = zend_arena_create(1024 * 32); in tokenize_parse() 488 zend_ast_destroy(CG(ast)); in tokenize_parse() 489 zend_arena_destroy(CG(ast_arena)); in tokenize_parse() [all …]
|
/PHP-8.2/ext/hash/ |
H A D | hash_arginfo.h | 219 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_hmac", sizeof("hash_… in register_hash_symbols() 221 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_hmac_file", sizeof("… in register_hash_symbols() 223 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_init", sizeof("hash_… in register_hash_symbols() 225 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_pbkdf2", sizeof("has… in register_hash_symbols() 227 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_equals", sizeof("has… in register_hash_symbols() 229 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_equals", sizeof("has… in register_hash_symbols() 231 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_hkdf", sizeof("hash_… in register_hash_symbols()
|
/PHP-8.2/Zend/tests/ |
H A D | gh11108.phpt | 2 GH-11108: Incorrect CG(memoize_mode) state after bailout in ??=
|
/PHP-8.2/ext/standard/tests/strings/ |
H A D | bug68996.phpt | 2 Bug #68996 (Invalid free of CG(interned_empty_string))
|
/PHP-8.2/sapi/fuzzer/ |
H A D | fuzzer-sapi.c | 281 CG(compiled_filename) = NULL; /* ??? */ in fuzzer_do_request_from_buffer() 298 call_user_function(CG(function_table), NULL, &func, &retval, nargs, args); in fuzzer_call_php_func_zval()
|
/PHP-8.2/ext/fileinfo/tests/ |
H A D | bug68996.phpt | 2 Bug #68996 (Invalid free of CG(interned_empty_string))
|