Home
last modified time | relevance | path

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

/PHP-7.4/Zend/
H A Dzend_constants.c101 EG(zend_constants) = (HashTable *) malloc(sizeof(HashTable)); in zend_startup_constants()
103 zend_hash_init(EG(zend_constants), 128, NULL, ZEND_CONSTANT_DTOR, 1); in zend_startup_constants()
144 zend_hash_destroy(EG(zend_constants)); in zend_shutdown_constants()
145 free(EG(zend_constants)); in zend_shutdown_constants()
225 c = zend_hash_find_ptr(EG(zend_constants), haltname); in zend_get_special_constant()
251 if ((c = zend_hash_str_find_ptr(EG(zend_constants), name, name_len)) == NULL) { in zend_get_constant_str_impl()
254 if ((c = zend_hash_str_find_ptr(EG(zend_constants), lcname, name_len)) != NULL) { in zend_get_constant_str_impl()
279 zv = zend_hash_find(EG(zend_constants), name); in zend_get_constant_impl()
283 zv = zend_hash_str_find(EG(zend_constants), lcname, ZSTR_LEN(name)); in zend_get_constant_impl()
432 if ((c = zend_hash_str_find_ptr(EG(zend_constants), lcname, lcname_len)) == NULL) { in zend_get_constant_ex()
[all …]
H A Dzend.c57 # define GLOBAL_CONSTANTS_TABLE EG(zend_constants)
695 zend_copy_constants(executor_globals->zend_constants, GLOBAL_CONSTANTS_TABLE); in executor_globals_ctor()
731 if (executor_globals->zend_constants != GLOBAL_CONSTANTS_TABLE) { in executor_globals_dtor()
732 zend_hash_destroy(executor_globals->zend_constants); in executor_globals_dtor()
733 free(executor_globals->zend_constants); in executor_globals_dtor()
899 zend_hash_destroy(executor_globals->zend_constants); in zend_startup()
900 *executor_globals->zend_constants = *GLOBAL_CONSTANTS_TABLE; in zend_startup()
1017 *GLOBAL_CONSTANTS_TABLE = *executor_globals->zend_constants; in zend_post_startup()
1036 free(EG(zend_constants)); in zend_post_startup()
1037 EG(zend_constants) = NULL; in zend_post_startup()
H A Dzend_globals.h157 HashTable *zend_constants; /* constants table */ member
H A Dzend_execute_API.c185 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed; in init_executor()
356 zend_hash_discard(EG(zend_constants), EG(persistent_constants_count)); in shutdown_executor()
364 zend_hash_reverse_apply(EG(zend_constants), clean_non_persistent_constant_full); in shutdown_executor()
368 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(zend_constants), key, zv) { in shutdown_executor()
H A Dzend_builtin_functions.c2063 ZEND_HASH_FOREACH_PTR(EG(zend_constants), val) { in ZEND_FUNCTION()
2093 ZEND_HASH_FOREACH_PTR(EG(zend_constants), constant) { in ZEND_FUNCTION()
H A Dzend_execute.c4420 zv = zend_hash_find_ex(EG(zend_constants), Z_STR_P(key), 1); in _zend_quick_get_constant()
4425 zv = zend_hash_find_ex(EG(zend_constants), Z_STR_P(key), 1); in _zend_quick_get_constant()
4431 zv = zend_hash_find_ex(EG(zend_constants), Z_STR_P(key), 1); in _zend_quick_get_constant()
4436 zv = zend_hash_find_ex(EG(zend_constants), Z_STR_P(key), 1); in _zend_quick_get_constant()
H A Dzend_compile.c1279 zend_constant *c = zend_hash_find_ptr_lc(EG(zend_constants), name, len); in zend_lookup_reserved_const()
1292 c = zend_hash_find_ptr(EG(zend_constants), name); in zend_try_ct_eval_const()
H A Dzend_vm_def.h8189 } else if (EXPECTED(zend_hash_num_elements(EG(zend_constants)) == DECODE_SPECIAL_CACHE_NUM(c))) {
8197 …_PTR(opline->extended_value, ENCODE_SPECIAL_CACHE_NUM(zend_hash_num_elements(EG(zend_constants))));
H A Dzend_vm_execute.h4635 } else if (EXPECTED(zend_hash_num_elements(EG(zend_constants)) == DECODE_SPECIAL_CACHE_NUM(c))) { in ZEND_DEFINED_SPEC_CONST_HANDLER()
4643 …_PTR(opline->extended_value, ENCODE_SPECIAL_CACHE_NUM(zend_hash_num_elements(EG(zend_constants)))); in ZEND_DEFINED_SPEC_CONST_HANDLER()
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_info.c105 if (EG(zend_constants)) { in PHPDBG_INFO()
107 ZEND_HASH_FOREACH_PTR(EG(zend_constants), data) { in PHPDBG_INFO()
H A Dphpdbg.c1021 zend_hash_del(EG(zend_constants), ic.name); in phpdbg_register_file_handles()
1027 zend_hash_del(EG(zend_constants), oc.name); in phpdbg_register_file_handles()
1033 zend_hash_del(EG(zend_constants), ec.name); in phpdbg_register_file_handles()
1143 zend_hash_num_elements(EG(zend_constants)), in phpdbg_welcome()
H A Dphpdbg_prompt.c1148 …g_writeln("info", "constants=\"%d\"", "Constants %d", zend_hash_num_elements(EG(zend_constants))); in PHPDBG_COMMAND()
1491 …_writeln("clean", "constants=\"%d\"", "Constants %d", zend_hash_num_elements(EG(zend_constants))); in PHPDBG_COMMAND()
/PHP-7.4/ext/opcache/
H A DZendAccelerator.c666 ZEND_HASH_FOREACH_BUCKET(EG(zend_constants), p) { in accel_copy_permanent_strings()
2112 uint32_t old_const_num = zend_hash_next_free_element(EG(zend_constants)); in persistent_compile_file()
2152 uint32_t new_const_num = zend_hash_next_free_element(EG(zend_constants)); in persistent_compile_file()
2155 zend_hash_index_del(EG(zend_constants), new_const_num); in persistent_compile_file()
3193 if (EG(zend_constants)) { in preload_shutdown()
3194 ZEND_HASH_REVERSE_FOREACH_VAL(EG(zend_constants), zv) { in preload_shutdown()
4251 if (EG(zend_constants)) { in preload_load()
4252 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed; in preload_load()
4527 if (EG(zend_constants)) { in accel_preload()
4546 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(zend_constants), key, zv) { in accel_preload()
[all …]
H A Dzend_accelerator_util_funcs.c776 if (!zend_hash_exists(EG(zend_constants), name)) { in zend_accel_load_script()
/PHP-7.4/ext/readline/
H A Dreadline_cli.c554 …rator_define(text, textlen, &cli_completion_state, ce ? &ce->constants_table : EG(zend_constants)); in cli_completion_generator()
/PHP-7.4/win32/build/
H A Dconfig.w32230 zend_constants.c zend_exceptions.c \
/PHP-7.4/
H A D.gdbinit322 Example: print_const_table executor_globals.zend_constants
H A Dconfigure.ac1495 zend_alloc.c zend_compile.c zend_constants.c zend_dtrace.c \
/PHP-7.4/ext/opcache/Optimizer/
H A Dblock_pass.c41 if ((c = zend_hash_find_ptr(EG(zend_constants), name)) == NULL) { in zend_optimizer_get_persistent_constant()
46 if ((c = zend_hash_str_find_ptr(EG(zend_constants), lookup_name, ZSTR_LEN(name))) != NULL) { in zend_optimizer_get_persistent_constant()
/PHP-7.4/ext/reflection/
H A Dphp_reflection.c991 ZEND_HASH_FOREACH_PTR(EG(zend_constants), constant) { in _extension_string()
5839 ZEND_HASH_FOREACH_PTR(EG(zend_constants), constant) { in ZEND_METHOD()

Completed in 352 milliseconds