Home
last modified time | relevance | path

Searched refs:function_table (Results 1 – 25 of 59) sorted by relevance

123

/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_print.c163 zend_hash_num_elements(&ce->function_table)); in PHPDBG_PRINT()
167 if (zend_hash_num_elements(&ce->function_table)) { in PHPDBG_PRINT()
170 ZEND_HASH_FOREACH_PTR(&ce->function_table, method) { in PHPDBG_PRINT()
192 if ((fbc = zend_hash_find_ptr(&ce->function_table, lcname))) { in PHPDBG_PRINT()
213 HashTable *func_table = EG(function_table); in PHPDBG_PRINT()
226 func_table = &scope->function_table; in PHPDBG_PRINT()
231 } else if (!EG(function_table)) { in PHPDBG_PRINT()
235 func_table = EG(function_table); in PHPDBG_PRINT()
341 phpdbg_out("%d methods: ", zend_hash_num_elements(&ce->function_table)); in phpdbg_print_opcodes_ce()
342 ZEND_HASH_FOREACH_PTR(&ce->function_table, method) { in phpdbg_print_opcodes_ce()
[all …]
H A Dphpdbg_list.c97 if ((function = zend_hash_str_find_ptr(&ce->function_table, lcname, strlen(lcname)))) { in PHPDBG_LIST()
194 HashTable *func_table = EG(function_table); in phpdbg_list_function_byname()
206 func_table = &scope->function_table; in phpdbg_list_function_byname()
211 } else if (!EG(function_table)) { in phpdbg_list_function_byname()
215 func_table = EG(function_table); in phpdbg_list_function_byname()
H A Dphpdbg_info.c381 …, type, (int) ZSTR_LEN(ce->name), ZSTR_VAL(ce->name), zend_hash_num_elements(&ce->function_table)); in phpdbg_print_class_name()
438 ZEND_HASH_FOREACH_PTR(EG(function_table), zf) { in PHPDBG_INFO()
/PHP-7.4/Zend/
H A Dzend_globals.h60 #undef function_table
77 HashTable *function_table; /* function symbol table */ member
155 HashTable *function_table; /* function symbol table */ member
H A Dzend_interfaces.c70 &obj_ce->function_table, function_name, function_name_len); in zend_call_method()
357 …funcs_ptr->zf_new_iterator = zend_hash_str_find_ptr(&class_type->function_table, "getiterator", si… in zend_implement_aggregate()
404 …funcs_ptr->zf_rewind = zend_hash_str_find_ptr(&class_type->function_table, "rewind", sizeof("rewin… in zend_implement_iterator()
405 …funcs_ptr->zf_valid = zend_hash_str_find_ptr(&class_type->function_table, "valid", sizeof("valid")… in zend_implement_iterator()
406 … funcs_ptr->zf_key = zend_hash_str_find_ptr(&class_type->function_table, "key", sizeof("key") - 1); in zend_implement_iterator()
407 …funcs_ptr->zf_current = zend_hash_str_find_ptr(&class_type->function_table, "current", sizeof("cur… in zend_implement_iterator()
408 …funcs_ptr->zf_next = zend_hash_str_find_ptr(&class_type->function_table, "next", sizeof("next") - … in zend_implement_iterator()
H A Dzend.c54 # define GLOBAL_FUNCTION_TABLE CG(function_table)
634 compiler_globals->function_table = (HashTable *) malloc(sizeof(HashTable)); in compiler_globals_ctor()
635 zend_hash_init_ex(compiler_globals->function_table, 1024, NULL, ZEND_FUNCTION_DTOR, 1, 0); in compiler_globals_ctor()
669 if (compiler_globals->function_table != GLOBAL_FUNCTION_TABLE) { in compiler_globals_dtor()
670 zend_hash_destroy(compiler_globals->function_table); in compiler_globals_dtor()
671 free(compiler_globals->function_table); in compiler_globals_dtor()
892 compiler_globals->function_table = (HashTable *) malloc(sizeof(HashTable)); in zend_startup()
895 *compiler_globals->function_table = *GLOBAL_FUNCTION_TABLE; in zend_startup()
1015 *GLOBAL_FUNCTION_TABLE = *compiler_globals->function_table; in zend_post_startup()
1024 free(compiler_globals->function_table); in zend_post_startup()
[all …]
H A Dzend_inheritance.c895 _zend_hash_append_ptr(&ce->function_table, key, parent); in do_inherit_method()
897 zend_hash_add_new_ptr(&ce->function_table, key, parent); in do_inherit_method()
1323 if (zend_hash_num_elements(&parent_ce->function_table)) { in zend_do_inheritance_ex()
1324 zend_hash_extend(&ce->function_table, in zend_do_inheritance_ex()
1325 zend_hash_num_elements(&ce->function_table) + in zend_do_inheritance_ex()
1326 zend_hash_num_elements(&parent_ce->function_table), 0); in zend_do_inheritance_ex()
1782 if (!zend_hash_exists(&trait->function_table, lcname)) { in zend_traits_init_trait_structures()
1850 if (!zend_hash_exists(&trait->function_table, lcname)) { in zend_traits_init_trait_structures()
1896 ZEND_HASH_FOREACH_PTR(&ce->function_table, fn) { in zend_do_traits_method_binding()
2073 if (zend_hash_exists(&ce->function_table, in zend_do_check_for_inconsistent_traits_aliasing()
[all …]
H A Dzend_execute_API.c139 EG(function_table) = CG(function_table); in init_executor()
186 EG(persistent_functions_count) = EG(function_table)->nNumUsed; in init_executor()
282 ZEND_HASH_REVERSE_FOREACH_VAL(EG(function_table), zv) { in shutdown_executor()
304 ZEND_HASH_FOREACH_PTR(&ce->function_table, op_array) { in shutdown_executor()
357 zend_hash_discard(EG(function_table), EG(persistent_functions_count)); in shutdown_executor()
365 zend_hash_reverse_apply(EG(function_table), clean_non_persistent_function_full); in shutdown_executor()
381 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(function_table), key, zv) { in shutdown_executor()
H A Dzend_builtin_functions.c1321 ZEND_HASH_FOREACH_STR_KEY_PTR(&ce->function_table, key, mptr) { in ZEND_FUNCTION()
1370 func = zend_hash_find_ptr(&ce->function_table, lcname); in ZEND_FUNCTION()
1528 func = zend_hash_find_ptr(EG(function_table), lcname); in ZEND_FUNCTION()
1820 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(function_table), key, func) { in ZEND_FUNCTION()
1899 …func = zend_hash_str_find_ptr(EG(function_table), LAMBDA_TEMP_FUNCNAME, sizeof(LAMBDA_TEMP_FUNCNAM… in ZEND_FUNCTION()
1909 zend_hash_str_del(EG(function_table), LAMBDA_TEMP_FUNCNAME, sizeof(LAMBDA_TEMP_FUNCNAME)-1); in ZEND_FUNCTION()
1917 } while (zend_hash_add_ptr(EG(function_table), function_name, func) == NULL); in ZEND_FUNCTION()
1920 zend_hash_str_del(EG(function_table), LAMBDA_TEMP_FUNCNAME, sizeof(LAMBDA_TEMP_FUNCNAME)-1); in ZEND_FUNCTION()
2675 ZEND_HASH_FOREACH_PTR(CG(function_table), zif) { in ZEND_FUNCTION()
H A Dzend_API.c2146 HashTable *target_function_table = function_table; in zend_register_functions()
2161 target_function_table = CG(function_table); in zend_register_functions()
2492 HashTable *target_function_table = function_table; in zend_unregister_functions()
2497 target_function_table = CG(function_table); in zend_unregister_functions()
2903 zend_hash_clean(&disabled_class->function_table); in zend_disable_class()
3087 ftable = &fcc->calling_scope->function_table; in zend_is_callable_check_func()
3097 ftable = &ce_org->function_table; in zend_is_callable_check_func()
3124 zv = zend_hash_find(&scope->function_table, lmname); in zend_is_callable_check_func()
4420 HashTable *function_table; in zend_resolve_method_name() local
4430 function_table = &ce->function_table; in zend_resolve_method_name()
[all …]
H A Dzend_opcode.c256 ZEND_HASH_FOREACH_PTR(&ce->function_table, op_array) { in destroy_zend_class()
313 zend_hash_destroy(&ce->function_table); in destroy_zend_class()
375 ZEND_HASH_FOREACH_PTR(&ce->function_table, fn) { in destroy_zend_class()
382 zend_hash_destroy(&ce->function_table); in destroy_zend_class()
/PHP-7.4/ext/opcache/
H A Dzend_persist_calc.c374 zend_hash_persist_calc(&ce->function_table); in zend_persist_class_entry_calc()
375 ZEND_HASH_FOREACH_BUCKET(&ce->function_table, p) { in zend_persist_class_entry_calc()
533 …if (new_persistent_script->script.function_table.nNumUsed != new_persistent_script->script.functio… in zend_accel_script_persist_calc()
534 zend_hash_rehash(&new_persistent_script->script.function_table); in zend_accel_script_persist_calc()
536 zend_hash_persist_calc(&new_persistent_script->script.function_table); in zend_accel_script_persist_calc()
537 ZEND_HASH_FOREACH_BUCKET(&new_persistent_script->script.function_table, p) { in zend_accel_script_persist_calc()
H A Dzend_accelerator_util_funcs.c52 zend_hash_init(&persistent_script->script.function_table, 0, NULL, ZEND_FUNCTION_DTOR, 0); in create_persistent_script()
65 persistent_script->script.function_table.pDestructor = NULL; in free_persistent_script()
69 zend_hash_destroy(&persistent_script->script.function_table); in free_persistent_script()
91 dst = &script->function_table; in zend_accel_move_user_functions()
277 zend_hash_clone_methods(&ce->function_table); in zend_class_copy_ctor()
765 if (zend_hash_num_elements(&persistent_script->script.function_table) > 0) { in zend_accel_load_script()
766 …zend_accel_function_hash_copy_from_shm(CG(function_table), &persistent_script->script.function_tab… in zend_accel_load_script()
786 if (zend_hash_num_elements(&persistent_script->script.function_table) > 0) { in zend_accel_load_script()
787 zend_accel_function_hash_copy(CG(function_table), &persistent_script->script.function_table); in zend_accel_load_script()
H A Dzend_persist.c724 zend_hash_persist(&ce->function_table); in zend_persist_class_entry()
725 ZEND_HASH_FOREACH_BUCKET(&ce->function_table, p) { in zend_persist_class_entry()
730 HT_FLAGS(&ce->function_table) &= (HASH_FLAG_UNINITIALIZED | HASH_FLAG_STATIC_KEYS); in zend_persist_class_entry()
921 …ce->iterator_funcs_ptr->zf_new_iterator = zend_hash_str_find_ptr(&ce->function_table, "getiterator… in zend_update_parent_ce()
924 …ce->iterator_funcs_ptr->zf_rewind = zend_hash_str_find_ptr(&ce->function_table, "rewind", sizeof("… in zend_update_parent_ce()
925 …ce->iterator_funcs_ptr->zf_valid = zend_hash_str_find_ptr(&ce->function_table, "valid", sizeof("va… in zend_update_parent_ce()
926 …ce->iterator_funcs_ptr->zf_key = zend_hash_str_find_ptr(&ce->function_table, "key", sizeof("key") … in zend_update_parent_ce()
927 …ce->iterator_funcs_ptr->zf_current = zend_hash_str_find_ptr(&ce->function_table, "current", sizeof… in zend_update_parent_ce()
928 …ce->iterator_funcs_ptr->zf_next = zend_hash_str_find_ptr(&ce->function_table, "next", sizeof("next… in zend_update_parent_ce()
1084 zend_hash_persist(&script->script.function_table); in zend_accel_script_persist()
[all …]
H A DZendAccelerator.c596 ZEND_HASH_FOREACH_BUCKET(CG(function_table), p) { in accel_copy_permanent_strings()
649 ZEND_HASH_FOREACH_BUCKET(&ce->function_table, q) { in accel_copy_permanent_strings()
1740 orig_functions_count = EG(function_table)->nNumUsed; in opcache_compile_file()
1783 …zend_accel_move_user_functions(CG(function_table), CG(function_table)->nNumUsed - orig_functions_c… in opcache_compile_file()
3203 if (EG(function_table)) { in preload_shutdown()
4230 Bucket *p = script->function_table.arData; in preload_load()
4231 Bucket *end = p + script->function_table.nNumUsed; in preload_load()
4233 zend_hash_extend(CG(function_table), in preload_load()
4234 CG(function_table)->nNumUsed + script->function_table.nNumUsed, 0); in preload_load()
4254 if (EG(function_table)) { in preload_load()
[all …]
H A Dzend_accelerator_module.c412 …if ((old_function = zend_hash_str_find_ptr(CG(function_table), "file_exists", sizeof("file_exists"…
416 …if ((old_function = zend_hash_str_find_ptr(CG(function_table), "is_file", sizeof("is_file")-1)) !=…
420 …if ((old_function = zend_hash_str_find_ptr(CG(function_table), "is_readable", sizeof("is_readable"…
658 if (zend_hash_num_elements(&ZCSG(preload_script)->script.function_table)) {
662 ZEND_HASH_FOREACH_PTR(&ZCSG(preload_script)->script.function_table, op_array) {
/PHP-7.4/ext/spl/
H A Dspl_fixedarray.c248 …funcs_ptr->zf_rewind = zend_hash_str_find_ptr(&class_type->function_table, "rewind", sizeof("rewin… in spl_fixedarray_object_new_ex()
249 …funcs_ptr->zf_valid = zend_hash_str_find_ptr(&class_type->function_table, "valid", sizeof("valid")… in spl_fixedarray_object_new_ex()
250 funcs_ptr->zf_key = zend_hash_str_find_ptr(&class_type->function_table, "key", sizeof("key") - 1); in spl_fixedarray_object_new_ex()
251 …funcs_ptr->zf_current = zend_hash_str_find_ptr(&class_type->function_table, "current", sizeof("cur… in spl_fixedarray_object_new_ex()
252 …funcs_ptr->zf_next = zend_hash_str_find_ptr(&class_type->function_table, "next", sizeof("next") - … in spl_fixedarray_object_new_ex()
271 …intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_fixedarray_object_new_ex()
275 …intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_fixedarray_object_new_ex()
279 …intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_fixedarray_object_new_ex()
283 …intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_fixedarray_object_new_ex()
287 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_fixedarray_object_new_ex()
H A Dspl_array.c221 …intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_array_object_new_ex()
225 …intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_array_object_new_ex()
237 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_array_object_new_ex()
248 …funcs_ptr->zf_rewind = zend_hash_str_find_ptr(&class_type->function_table, "rewind", sizeof("rewin… in spl_array_object_new_ex()
249 …funcs_ptr->zf_valid = zend_hash_str_find_ptr(&class_type->function_table, "valid", sizeof("valid")… in spl_array_object_new_ex()
250 … funcs_ptr->zf_key = zend_hash_str_find_ptr(&class_type->function_table, "key", sizeof("key") - 1); in spl_array_object_new_ex()
251 …funcs_ptr->zf_current = zend_hash_str_find_ptr(&class_type->function_table, "current", sizeof("cur… in spl_array_object_new_ex()
252 …funcs_ptr->zf_next = zend_hash_str_find_ptr(&class_type->function_table, "next", sizeof("next") - … in spl_array_object_new_ex()
1440 call_user_function(EG(function_table), NULL, &function_name, return_value, 1, params); in spl_array_method()
1451 call_user_function(EG(function_table), NULL, &function_name, return_value, arg ? 2 : 1, params); in spl_array_method()
[all …]
H A Dspl_dllist.c428 …intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_dllist_object_new_ex()
432 …intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_dllist_object_new_ex()
436 …intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_dllist_object_new_ex()
440 …intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_dllist_object_new_ex()
444 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_dllist_object_new_ex()
/PHP-7.4/ext/opcache/Optimizer/
H A Dzend_optimizer.h87 HashTable function_table; member
H A Dzend_optimizer.c853 zend_function *fbc = zend_hash_find_ptr(&ce->function_table, func_name); in zend_optimizer_get_called_func()
870 &op_array->scope->function_table, method_name); in zend_optimizer_get_called_func()
1283 &ctx->script->function_table, in zend_adjust_fcall_stack_size()
1352 ZEND_HASH_FOREACH_PTR(&script->function_table, op_array) { in zend_optimize_script()
1360 ZEND_HASH_FOREACH_STR_KEY_PTR(&ce->function_table, name, op_array) { in zend_optimize_script()
1468 ZEND_HASH_FOREACH_PTR(&script->function_table, op_array) { in zend_optimize_script()
1476 ZEND_HASH_FOREACH_STR_KEY_PTR(&ce->function_table, name, op_array) { in zend_optimize_script()
1490 ZEND_HASH_FOREACH_STR_KEY_PTR(&ce->function_table, name, op_array) { in zend_optimize_script()
1493 zend_hash_find_ptr(&op_array->scope->function_table, name); in zend_optimize_script()
1515 ZEND_HASH_FOREACH_PTR(&script->function_table, op_array) { in zend_optimize_script()
[all …]
H A Dzend_call_graph.c63 ZEND_HASH_FOREACH_PTR(&script->function_table, op_array) { in zend_foreach_op_array()
73 ZEND_HASH_FOREACH_PTR(&ce->function_table, op_array) { in zend_foreach_op_array()
/PHP-7.4/ext/soap/
H A Dsoap.c1349 ft = &(Z_OBJCE(service->soap_object)->function_table); in PHP_METHOD()
1351 ft = &service->soap_class.ce->function_table; in PHP_METHOD()
1353 ft = EG(function_table); in PHP_METHOD()
1413 if ((f = zend_hash_find_ptr(EG(function_table), key)) == NULL) { in PHP_METHOD()
1430 if ((f = zend_hash_find_ptr(EG(function_table), key)) == NULL) { in PHP_METHOD()
1493 HashTable *function_table; local
1668 function_table = &((Z_OBJCE_P(soap_obj))->function_table);
1762 function_table = &((Z_OBJCE_P(soap_obj))->function_table);
1765 function_table = EG(function_table);
1767 function_table = service->soap_functions.ft;
[all …]
/PHP-7.4/ext/com_dotnet/
H A Dcom_wrapper.c495 zend_hash_internal_pointer_reset_ex(&Z_OBJCE(disp->object)->function_table, &pos); in generate_dispids()
497 zend_hash_get_current_key_ex(&Z_OBJCE(disp->object)->function_table, in generate_dispids()
508 zend_hash_move_forward_ex(&Z_OBJCE(disp->object)->function_table, &pos); in generate_dispids()
/PHP-7.4/ext/readline/
H A Dreadline_cli.c548 …rator_func(lc_text, textlen, &cli_completion_state, ce ? &ce->function_table : EG(function_table)); in cli_completion_generator()

Completed in 173 milliseconds

123