Home
last modified time | relevance | path

Searched refs:zend_constants (Results 1 – 23 of 23) sorted by relevance

/PHP-8.2/Zend/
H A Dzend_constants.c104 EG(zend_constants) = (HashTable *) malloc(sizeof(HashTable)); in zend_startup_constants()
105 zend_hash_init(EG(zend_constants), 128, NULL, ZEND_CONSTANT_DTOR, 1); in zend_startup_constants()
114 true_const = zend_hash_str_find_ptr(EG(zend_constants), "TRUE", sizeof("TRUE")-1); in zend_register_standard_constants()
116 null_const = zend_hash_str_find_ptr(EG(zend_constants), "NULL", sizeof("NULL")-1); in zend_register_standard_constants()
122 zend_hash_destroy(EG(zend_constants)); in zend_shutdown_constants()
123 free(EG(zend_constants)); in zend_shutdown_constants()
202 c = zend_hash_find_ptr(EG(zend_constants), haltname); in zend_get_halt_offset_constant()
256 zend_constant *c = zend_hash_str_find_ptr(EG(zend_constants), name, name_len); in zend_get_constant_str_impl()
280 zend_constant *c = zend_hash_find_ptr(EG(zend_constants), name); in zend_get_constant_impl()
513 c = zend_hash_str_find_ptr(EG(zend_constants), lcname, lcname_len); in zend_get_constant_ex()
[all …]
H A Dzend.c70 # define GLOBAL_CONSTANTS_TABLE EG(zend_constants)
786 zend_copy_constants(executor_globals->zend_constants, GLOBAL_CONSTANTS_TABLE); in executor_globals_ctor()
836 if (executor_globals->zend_constants != GLOBAL_CONSTANTS_TABLE) { in executor_globals_dtor()
837 zend_hash_destroy(executor_globals->zend_constants); in executor_globals_dtor()
838 free(executor_globals->zend_constants); in executor_globals_dtor()
1003 zend_hash_destroy(executor_globals->zend_constants); in zend_startup()
1004 *executor_globals->zend_constants = *GLOBAL_CONSTANTS_TABLE; in zend_startup()
1080 *GLOBAL_CONSTANTS_TABLE = *executor_globals->zend_constants; in zend_post_startup()
1102 free(EG(zend_constants)); in zend_post_startup()
1103 EG(zend_constants) = NULL; in zend_post_startup()
H A Dzend_globals.h184 HashTable *zend_constants; /* constants table */ member
H A Dzend_execute_API.c190 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed; in init_executor()
290 zend_hash_reverse_apply(EG(zend_constants), clean_non_persistent_constant_full); in zend_shutdown_executor_values()
292 ZEND_HASH_MAP_REVERSE_FOREACH_STR_KEY_VAL(EG(zend_constants), key, zv) { in zend_shutdown_executor_values()
398 zend_hash_discard(EG(zend_constants), EG(persistent_constants_count)); in zend_shutdown_executor_values()
H A Dzend_builtin_functions.c1569 ZEND_HASH_MAP_FOREACH_PTR(EG(zend_constants), val) { in ZEND_FUNCTION()
1599 ZEND_HASH_MAP_FOREACH_PTR(EG(zend_constants), constant) { in ZEND_FUNCTION()
H A Dzend_execute.c5003 zv = zend_hash_find_known_hash(EG(zend_constants), Z_STR_P(key)); in _zend_quick_get_constant()
5008 zv = zend_hash_find_known_hash(EG(zend_constants), Z_STR_P(key)); in _zend_quick_get_constant()
H A Dzend_vm_def.h8686 } else if (EXPECTED(zend_hash_num_elements(EG(zend_constants)) == DECODE_SPECIAL_CACHE_NUM(c))) {
8692 …_PTR(opline->extended_value, ENCODE_SPECIAL_CACHE_NUM(zend_hash_num_elements(EG(zend_constants))));
H A Dzend_compile.c1632 c = zend_hash_find_ptr(EG(zend_constants), name); in zend_try_ct_eval_const()
H A Dzend_vm_execute.h5796 } else if (EXPECTED(zend_hash_num_elements(EG(zend_constants)) == DECODE_SPECIAL_CACHE_NUM(c))) { in ZEND_DEFINED_SPEC_CONST_HANDLER()
5802 …_PTR(opline->extended_value, ENCODE_SPECIAL_CACHE_NUM(zend_hash_num_elements(EG(zend_constants)))); in ZEND_DEFINED_SPEC_CONST_HANDLER()
/PHP-8.2/sapi/phpdbg/
H A Dphpdbg_info.c106 if (EG(zend_constants)) { in PHPDBG_INFO()
108 ZEND_HASH_MAP_FOREACH_PTR(EG(zend_constants), data) { in PHPDBG_INFO()
H A Dphpdbg.c916 zend_hash_del(EG(zend_constants), ic.name); in phpdbg_register_file_handles()
922 zend_hash_del(EG(zend_constants), oc.name); in phpdbg_register_file_handles()
928 zend_hash_del(EG(zend_constants), ec.name); in phpdbg_register_file_handles()
1015 zend_hash_num_elements(EG(zend_constants)), in phpdbg_welcome()
H A Dphpdbg_prompt.c1123 phpdbg_writeln("Constants %d", zend_hash_num_elements(EG(zend_constants))); in PHPDBG_COMMAND()
1459 phpdbg_writeln("Constants %d", zend_hash_num_elements(EG(zend_constants))); in PHPDBG_COMMAND()
/PHP-8.2/ext/opcache/jit/
H A Dzend_jit_vm_helpers.c295 zv = zend_hash_find_known_hash(EG(zend_constants), Z_STR_P(key)); in _zend_quick_get_constant()
300 zv = zend_hash_find_known_hash(EG(zend_constants), Z_STR_P(key)); in _zend_quick_get_constant()
311 …_PTR(opline->extended_value, ENCODE_SPECIAL_CACHE_NUM(zend_hash_num_elements(EG(zend_constants)))); in _zend_quick_get_constant()
H A Dzend_jit.c540 zv = zend_hash_find_known_hash(EG(zend_constants), Z_STR_P(key)); in zend_jit_is_persistent_constant()
545 zv = zend_hash_find_known_hash(EG(zend_constants), Z_STR_P(key)); in zend_jit_is_persistent_constant()
H A Dzend_jit_ir.c3085 REGISTER_DATA(EG(zend_constants)); in zend_jit_setup_disasm()
7599 ref2 = jit_EG(zend_constants); in zend_jit_defined()
/PHP-8.2/ext/opcache/
H A DZendAccelerator.c718 ZEND_HASH_MAP_FOREACH_BUCKET(EG(zend_constants), p) { in accel_copy_permanent_strings()
2129 uint32_t old_const_num = zend_hash_next_free_element(EG(zend_constants)); in persistent_compile_file()
2169 uint32_t new_const_num = zend_hash_next_free_element(EG(zend_constants)); in persistent_compile_file()
2172 zend_hash_index_del(EG(zend_constants), new_const_num); in persistent_compile_file()
3483 if (EG(zend_constants)) {
3484 ZEND_HASH_MAP_REVERSE_FOREACH_VAL(EG(zend_constants), zv) {
4299 if (EG(zend_constants)) {
4300 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed;
4407 if (EG(zend_constants)) {
4438 ZEND_ASSERT(zend_hash_num_elements(EG(zend_constants)) == EG(persistent_constants_count));
H A Dzend_accelerator_util_funcs.c395 if (!zend_hash_exists(EG(zend_constants), name)) { in zend_accel_load_script()
/PHP-8.2/ext/readline/
H A Dreadline_cli.c567 …rator_define(text, textlen, &cli_completion_state, ce ? &ce->constants_table : EG(zend_constants)); in cli_completion_generator()
/PHP-8.2/win32/build/
H A Dconfig.w32232 zend_compile.c zend_constants.c zend_exceptions.c \
/PHP-8.2/
H A D.gdbinit310 Example: print_const_table executor_globals.zend_constants
H A Dconfigure.ac1729 zend_alloc.c zend_call_stack.c zend_compile.c zend_constants.c zend_dtrace.c \
/PHP-8.2/Zend/Optimizer/
H A Dblock_pass.c35 zend_constant *c = zend_hash_find_ptr(EG(zend_constants), name); in zend_optimizer_get_persistent_constant()
/PHP-8.2/ext/reflection/
H A Dphp_reflection.c1051 ZEND_HASH_MAP_FOREACH_PTR(EG(zend_constants), constant) { in _extension_string()
6089 ZEND_HASH_MAP_FOREACH_PTR(EG(zend_constants), constant) { in ZEND_METHOD()

Completed in 580 milliseconds