Home
last modified time | relevance | path

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

/PHP-7.0/Zend/
H A Dzend_constants.c107 EG(zend_constants) = (HashTable *) malloc(sizeof(HashTable)); in zend_startup_constants()
109 zend_hash_init(EG(zend_constants), 128, NULL, ZEND_CONSTANT_DTOR, 1); in zend_startup_constants()
150 zend_hash_destroy(EG(zend_constants)); in zend_shutdown_constants()
151 free(EG(zend_constants)); in zend_shutdown_constants()
159 zend_hash_apply(EG(zend_constants), clean_non_persistent_constant_full); in clean_non_persistent_constants()
161 zend_hash_reverse_apply(EG(zend_constants), clean_non_persistent_constant); in clean_non_persistent_constants()
246 c = zend_hash_find_ptr(EG(zend_constants), haltname); in zend_get_special_constant()
281 if ((c = zend_hash_find_ptr(EG(zend_constants), name)) == NULL) { in zend_get_constant()
424 if ((c = zend_hash_find_ptr(EG(zend_constants), Z_STR_P(key))) == NULL) { in zend_quick_get_constant()
426 if ((c = zend_hash_find_ptr(EG(zend_constants), Z_STR_P(key))) == NULL || in zend_quick_get_constant()
[all …]
H A DZendCore.dep46 .\zend_constants.c : \
50 ".\zend_constants.h"\
63 ".\zend_constants.h"\
168 ".\zend_constants.h"\
200 ".\zend_constants.h"\
H A Dzend.c44 # define GLOBAL_CONSTANTS_TABLE EG(zend_constants)
545 zend_copy_constants(EG(zend_constants), GLOBAL_CONSTANTS_TABLE); in executor_globals_ctor()
581 if (executor_globals->zend_constants != GLOBAL_CONSTANTS_TABLE) { in executor_globals_dtor()
582 zend_hash_destroy(executor_globals->zend_constants); in executor_globals_dtor()
583 free(executor_globals->zend_constants); in executor_globals_dtor()
747 zend_hash_destroy(executor_globals->zend_constants); in zend_startup()
748 *executor_globals->zend_constants = *GLOBAL_CONSTANTS_TABLE; in zend_startup()
801 *GLOBAL_CONSTANTS_TABLE = *executor_globals->zend_constants; in zend_post_startup()
815 free(EG(zend_constants)); in zend_post_startup()
H A DMakefile.am11 zend_alloc.c zend_compile.c zend_constants.c \
H A Dzend_globals.h157 HashTable *zend_constants; /* constants table */ member
H A Dzend_builtin_functions.c2184 ZEND_HASH_FOREACH_PTR(EG(zend_constants), val) { in ZEND_FUNCTION()
2211 zend_hash_apply_with_argument(EG(zend_constants), add_constant_info, return_value); in ZEND_FUNCTION()
H A Dzend_compile.c1259 zend_constant *c = zend_hash_find_ptr_lc(EG(zend_constants), name, len); in zend_lookup_reserved_const()
1272 c = zend_hash_find_ptr(EG(zend_constants), name); in zend_try_ct_eval_const()
/PHP-7.0/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.c996 zend_hash_del(EG(zend_constants), ic.name); in phpdbg_register_file_handles()
1003 zend_hash_del(EG(zend_constants), oc.name); in phpdbg_register_file_handles()
1010 zend_hash_del(EG(zend_constants), ec.name); in phpdbg_register_file_handles()
1120 zend_hash_num_elements(EG(zend_constants)), in phpdbg_welcome()
H A Dphpdbg_prompt.c1140 …g_writeln("info", "constants=\"%d\"", "Constants %d", zend_hash_num_elements(EG(zend_constants))); in PHPDBG_COMMAND()
1483 …_writeln("clean", "constants=\"%d\"", "Constants %d", zend_hash_num_elements(EG(zend_constants))); in PHPDBG_COMMAND()
/PHP-7.0/ext/opcache/
H A DZendAccelerator.c595 for (idx = 0; idx < EG(zend_constants)->nNumUsed; idx++) { in accel_use_shm_interned_strings()
596 p = EG(zend_constants)->arData + idx; in accel_use_shm_interned_strings()
1851 uint32_t old_const_num = zend_hash_next_free_element(EG(zend_constants)); in persistent_compile_file()
1881 uint32_t new_const_num = zend_hash_next_free_element(EG(zend_constants)); in persistent_compile_file()
1884 zend_hash_index_del(EG(zend_constants), new_const_num); in persistent_compile_file()
2367 ZEND_HASH_REVERSE_FOREACH(EG(zend_constants), 0) { in zend_accel_fast_shutdown()
2373 zend_accel_fast_del_bucket(EG(zend_constants), HT_IDX_TO_HASH(_idx-1), _p); in zend_accel_fast_shutdown()
2378 EG(zend_constants)->nNumUsed = EG(zend_constants)->nNumOfElements; in zend_accel_fast_shutdown()
2915 zend_hash_clean(EG(zend_constants));
H A Dzend_accelerator_util_funcs.c720 if (!zend_hash_exists(EG(zend_constants), name)) { in zend_accel_load_script()
/PHP-7.0/ext/readline/
H A Dreadline_cli.c550 …rator_define(text, textlen, &cli_completion_state, ce ? &ce->constants_table : EG(zend_constants)); in cli_completion_generator()
/PHP-7.0/win32/build/
H A Dconfig.w32132 zend_constants.c zend_exceptions.c \
/PHP-7.0/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.0/
H A Dconfigure.in1496 zend_alloc.c zend_compile.c zend_constants.c zend_dtrace.c \
/PHP-7.0/ext/reflection/
H A Dphp_reflection.c1113 …zend_hash_apply_with_arguments(EG(zend_constants), (apply_func_args_t) _extension_const_string, 4,… in _extension_string()
5709 …zend_hash_apply_with_arguments(EG(zend_constants), (apply_func_args_t) _addconstant, 2, return_val… in ZEND_METHOD()

Completed in 103 milliseconds