/PHP-8.3/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.3/ext/openssl/ |
H A D | openssl_arginfo.h | 653 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_csr_sign", sizeof… in register_openssl_symbols() 655 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_csr_new", sizeof(… in register_openssl_symbols() 673 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pbkdf2", sizeof("… in register_openssl_symbols() 681 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_cms_sign", sizeof… in register_openssl_symbols() 699 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_sign", sizeof("op… in register_openssl_symbols() 701 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_seal", 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_open", sizeof("op… in register_openssl_symbols() 707 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_encrypt", sizeof(… in register_openssl_symbols() 709 …zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_encrypt", sizeof(… in register_openssl_symbols() [all …]
|
/PHP-8.3/Zend/ |
H A D | zend.c | 143 if (!CG(multibyte)) { in ZEND_INI_MH() 1269 memset(CG(map_ptr_real_base), 0, CG(map_ptr_last) * sizeof(void*)); in zend_activate() 1361 CG(stack).top = CG(stack).max = 0; \ 1955 if (CG(map_ptr_last) >= CG(map_ptr_size)) { in zend_map_ptr_new() 1958 CG(map_ptr_real_base) = perealloc(CG(map_ptr_real_base), CG(map_ptr_size) * sizeof(void*), 1); in zend_map_ptr_new() 1959 CG(map_ptr_base) = ZEND_MAP_PTR_BIASED_BASE(CG(map_ptr_real_base)); in zend_map_ptr_new() 1961 ptr = (void**)CG(map_ptr_real_base) + CG(map_ptr_last); in zend_map_ptr_new() 1963 CG(map_ptr_last)++; in zend_map_ptr_new() 1975 CG(map_ptr_real_base) = perealloc(CG(map_ptr_real_base), CG(map_ptr_size) * sizeof(void*), 1); in zend_map_ptr_extend() 1976 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 | 155 …CG(context).brk_cont_array = erealloc(CG(context).brk_cont_array, sizeof(zend_brk_cont_element) * … in get_next_brk_cont_element() 156 return &CG(context).brk_cont_array[CG(context).last_brk_cont-1]; in get_next_brk_cont_element() 397 CG(in_compilation) = 0; in zend_init_compiler_data_structures() 398 CG(skip_shebang) = 0; in zend_init_compiler_data_structures() 426 memset(&CG(context), 0, sizeof(CG(context))); in init_compiler() 688 CG(context).current_brk_cont = CG(context).last_brk_cont; in zend_begin_loop() 715 = &CG(context).brk_cont_array[CG(context).current_brk_cont]; in zend_end_loop() 1737 if (CG(active_class_entry) && CG(active_class_entry)->parent_name in zend_try_compile_const_expr_resolve_class_name() 1958 CG(zend_lineno)++; in zendlex() 2254 …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() 2212 CG(zend_lineno)++; [all …]
|
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_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) 213 if (CG(ini_parser_unbuffered_errors)) { in ini_error() 233 CG(ini_parser_param) = &ini_parser_param; in zend_parse_ini_file() 239 CG(ini_parser_unbuffered_errors) = unbuffered_errors; in zend_parse_ini_file() 260 CG(ini_parser_param) = &ini_parser_param; in zend_parse_ini_string() 266 CG(ini_parser_unbuffered_errors) = unbuffered_errors; in zend_parse_ini_string()
|
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 | 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() 2786 CG(current_linking_class) = in check_variance_obligation() 2870 if (CG(unlinked_uses) in check_unrecoverable_load_failure() 3138 if (CG(unlinked_uses)) { in zend_do_link_class() 3216 if (CG(current_linking_class)) { in zend_do_link_class() 3226 CG(current_linking_class) = NULL; in zend_do_link_class() 3230 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); } 1272 CG(extra_fn_flags) = $9; } 1276 T_FN { $$ = CG(zend_lineno); } 1280 T_FUNCTION { $$ = CG(zend_lineno); } 1284 %empty { $$ = CG(doc_comment); CG(doc_comment) = NULL; } 1288 %prec PREC_ARROW_FUNCTION %empty { $$ = CG(extra_fn_flags); CG(extra_fn_flags) = 0; } 1621 if (yyres && CG(parse_error) < 2) { 1622 CG(parse_error) = 2; 1625 if (CG(parse_error) % 2 == 0) { [all …]
|
H A D | zend_extensions.c | 311 size_t functions = zend_hash_num_elements(CG(function_table)); in zend_init_internal_run_time_cache() 313 ZEND_HASH_MAP_FOREACH_PTR(CG(class_table), ce) { in zend_init_internal_run_time_cache() 317 char *ptr = zend_arena_calloc(&CG(arena), functions, rt_size); in zend_init_internal_run_time_cache() 319 ZEND_HASH_MAP_FOREACH_PTR(CG(function_table), zif) { in zend_init_internal_run_time_cache() 326 ZEND_HASH_MAP_FOREACH_PTR(CG(class_table), ce) { in zend_init_internal_run_time_cache()
|
H A D | zend_opcode.c | 674 CG(in_compilation) = 1; in zend_check_finally_breakout() 675 CG(active_op_array) = op_array; in zend_check_finally_breakout() 682 CG(in_compilation) = 1; in zend_check_finally_breakout() 683 CG(active_op_array) = op_array; in zend_check_finally_breakout() 695 jmp_to = &CG(context).brk_cont_array[array_offset]; in zend_get_brk_cont_target() 1036 if (CG(context).vars_size != op_array->last_var) { in pass_two() 1038 CG(context).vars_size = op_array->last_var; in pass_two() 1042 if (CG(context).opcodes_size != op_array->last) { in pass_two() 1044 CG(context).opcodes_size = op_array->last; in pass_two() 1060 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 | 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.3/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.3/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() 349 zend_string *orig_compiled_filename = CG(compiled_filename); in zend_accel_do_delayed_early_binding() 350 bool orig_in_compilation = CG(in_compilation); in zend_accel_do_delayed_early_binding() 351 CG(compiled_filename) = persistent_script->script.filename; in zend_accel_do_delayed_early_binding() 352 CG(in_compilation) = 1; in zend_accel_do_delayed_early_binding() 372 CG(compiled_filename) = orig_compiled_filename; in zend_accel_do_delayed_early_binding() 373 CG(in_compilation) = orig_in_compilation; in zend_accel_do_delayed_early_binding() [all …]
|
H A D | ZendAccelerator.c | 3794 CG(in_compilation) = false; 3927 CG(in_compilation) = true; 3961 CG(in_compilation) = false; 3962 CG(compiled_filename) = NULL; 3982 CG(in_compilation) = false; 4311 CG(map_ptr_size) = ZEND_MM_ALIGNED_SIZE_EX(CG(map_ptr_last) + 1, 4096); 4312 CG(map_ptr_real_base) = perealloc(CG(map_ptr_real_base), CG(map_ptr_size) * sizeof(void*), 1); 4313 CG(map_ptr_base) = ZEND_MAP_PTR_BIASED_BASE(CG(map_ptr_real_base)); 4351 CG(skip_shebang) = true; 4383 CG(unclean_shutdown) = true; [all …]
|
/PHP-8.3/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.3/Zend/tests/ |
H A D | gh11108.phpt | 2 GH-11108: Incorrect CG(memoize_mode) state after bailout in ??=
|
/PHP-8.3/ext/standard/tests/strings/ |
H A D | bug68996.phpt | 2 Bug #68996 (Invalid free of CG(interned_empty_string))
|
/PHP-8.3/sapi/fuzzer/ |
H A D | fuzzer-sapi.c | 284 CG(compiled_filename) = NULL; /* ??? */ in fuzzer_do_request_from_buffer() 301 call_user_function(CG(function_table), NULL, &func, &retval, nargs, args); in fuzzer_call_php_func_zval()
|
/PHP-8.3/ext/fileinfo/tests/ |
H A D | bug68996.phpt | 2 Bug #68996 (Invalid free of CG(interned_empty_string))
|