Home
last modified time | relevance | path

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

123

/PHP-8.0/sapi/phpdbg/
H A Dphpdbg_print.c161 zend_hash_num_elements(&ce->function_table)); in PHPDBG_PRINT()
165 if (zend_hash_num_elements(&ce->function_table)) { in PHPDBG_PRINT()
168 ZEND_HASH_FOREACH_PTR(&ce->function_table, method) { in PHPDBG_PRINT()
190 if ((fbc = zend_hash_find_ptr(&ce->function_table, lcname))) { in PHPDBG_PRINT()
211 HashTable *func_table = EG(function_table); in PHPDBG_PRINT()
224 func_table = &scope->function_table; in PHPDBG_PRINT()
229 } else if (!EG(function_table)) { in PHPDBG_PRINT()
233 func_table = EG(function_table); in PHPDBG_PRINT()
339 phpdbg_out("%d methods: ", zend_hash_num_elements(&ce->function_table)); in phpdbg_print_opcodes_ce()
340 ZEND_HASH_FOREACH_PTR(&ce->function_table, method) { in phpdbg_print_opcodes_ce()
[all …]
H A Dphpdbg_list.c95 if ((function = zend_hash_str_find_ptr(&ce->function_table, lcname, strlen(lcname)))) { in PHPDBG_LIST()
192 HashTable *func_table = EG(function_table); in phpdbg_list_function_byname()
204 func_table = &scope->function_table; in phpdbg_list_function_byname()
209 } else if (!EG(function_table)) { in phpdbg_list_function_byname()
213 func_table = EG(function_table); in phpdbg_list_function_byname()
H A Dphpdbg_info.c379 …, type, (int) ZSTR_LEN(ce->name), ZSTR_VAL(ce->name), zend_hash_num_elements(&ce->function_table)); in phpdbg_print_class_name()
436 ZEND_HASH_FOREACH_PTR(EG(function_table), zf) { in PHPDBG_INFO()
H A Dphpdbg_bp.c575 HashTable *func_table = EG(function_table); in phpdbg_resolve_opline_break()
611 func_table = &ce->function_table; in phpdbg_resolve_opline_break()
1567 HashTable *function_table; in phpdbg_print_breakpoints() local
1571 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE], function_table) { in phpdbg_print_breakpoints()
1574 ZEND_HASH_FOREACH_PTR(function_table, brake) { in phpdbg_print_breakpoints()
/PHP-8.0/Zend/
H A Dzend_globals.h60 #undef function_table
77 HashTable *function_table; /* function symbol table */ member
156 HashTable *function_table; /* function symbol table */ member
H A Dzend.c56 # define GLOBAL_FUNCTION_TABLE CG(function_table)
663 compiler_globals->function_table = (HashTable *) malloc(sizeof(HashTable)); in compiler_globals_ctor()
664 zend_hash_init(compiler_globals->function_table, 1024, NULL, ZEND_FUNCTION_DTOR, 1); in compiler_globals_ctor()
700 if (compiler_globals->function_table != GLOBAL_FUNCTION_TABLE) { in compiler_globals_dtor()
701 zend_hash_destroy(compiler_globals->function_table); in compiler_globals_dtor()
702 free(compiler_globals->function_table); in compiler_globals_dtor()
924 compiler_globals->function_table = (HashTable *) malloc(sizeof(HashTable)); in zend_startup()
927 *compiler_globals->function_table = *GLOBAL_FUNCTION_TABLE; in zend_startup()
1052 *GLOBAL_FUNCTION_TABLE = *compiler_globals->function_table; in zend_post_startup()
1061 free(compiler_globals->function_table); in zend_post_startup()
[all …]
H A Dzend_inheritance.c988 _zend_hash_append_ptr(&ce->function_table, key, parent); in do_inherit_method()
990 zend_hash_add_new_ptr(&ce->function_table, key, parent); in do_inherit_method()
1391 if (zend_hash_num_elements(&parent_ce->function_table)) { in zend_do_inheritance_ex()
1392 zend_hash_extend(&ce->function_table, in zend_do_inheritance_ex()
1393 zend_hash_num_elements(&ce->function_table) + in zend_do_inheritance_ex()
1394 zend_hash_num_elements(&parent_ce->function_table), 0); in zend_do_inheritance_ex()
1778 if (!zend_hash_exists(&trait->function_table, lcname)) { in zend_traits_init_trait_structures()
1847 if (!zend_hash_exists(&trait->function_table, lcname)) { in zend_traits_init_trait_structures()
1931 ZEND_HASH_FOREACH_PTR(&ce->function_table, fn) { in zend_do_traits_method_binding()
2175 ZEND_HASH_FOREACH_PTR(&ce->function_table, func) { in zend_verify_abstract_class()
[all …]
H A Dzend_execute_API.c141 EG(function_table) = CG(function_table); in init_executor()
185 EG(persistent_functions_count) = EG(function_table)->nNumUsed; in init_executor()
283 ZEND_HASH_REVERSE_FOREACH_VAL(EG(function_table), zv) { in shutdown_executor()
303 ZEND_HASH_FOREACH_PTR(&ce->function_table, op_array) { in shutdown_executor()
354 zend_hash_discard(EG(function_table), EG(persistent_functions_count)); in shutdown_executor()
362 zend_hash_reverse_apply(EG(function_table), clean_non_persistent_function_full); in shutdown_executor()
378 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(function_table), key, zv) { in shutdown_executor()
H A Dzend_opcode.c276 ZEND_HASH_FOREACH_PTR(&ce->function_table, op_array) { in destroy_zend_class()
334 zend_hash_destroy(&ce->function_table); in destroy_zend_class()
403 ZEND_HASH_FOREACH_PTR(&ce->function_table, fn) { in destroy_zend_class()
416 zend_hash_destroy(&ce->function_table); in destroy_zend_class()
H A Dzend_interfaces.c57 &obj_ce->function_table, function_name, function_name_len); in zend_call_method()
281 &class_type->function_table, "getiterator", sizeof("getiterator") - 1); in zend_implement_aggregate()
H A Dzend_API.c2324 HashTable *target_function_table = function_table; in ZEND_END_ARG_INFO()
2336 target_function_table = CG(function_table); in ZEND_END_ARG_INFO()
2560 HashTable *target_function_table = function_table; in zend_unregister_functions()
2565 target_function_table = CG(function_table); in zend_unregister_functions()
2912 zend_hash_str_del(CG(function_table), function_name, function_name_length); in zend_disable_function()
2946 zend_hash_rehash(CG(function_table)); in zend_disable_functions()
2998 ZEND_HASH_FOREACH_PTR(&disabled_class->function_table, fn) { in zend_disable_class()
3004 zend_hash_clean(&disabled_class->function_table); in zend_disable_class()
3184 ftable = &fcc->calling_scope->function_table; in zend_is_callable_check_func()
3194 ftable = &ce_org->function_table; in zend_is_callable_check_func()
[all …]
/PHP-8.0/ext/opcache/
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()
67 persistent_script->script.function_table.nNumUsed = 0; in free_persistent_script()
73 zend_hash_destroy(&persistent_script->script.function_table); in free_persistent_script()
95 dst = &script->function_table; in zend_accel_move_user_functions()
298 zend_hash_clone_methods(&ce->function_table); in zend_class_copy_ctor()
782 if (zend_hash_num_elements(&persistent_script->script.function_table) > 0) { in zend_accel_load_script()
783 …zend_accel_function_hash_copy_from_shm(CG(function_table), &persistent_script->script.function_tab… in zend_accel_load_script()
803 if (zend_hash_num_elements(&persistent_script->script.function_table) > 0) { in zend_accel_load_script()
804 zend_accel_function_hash_copy(CG(function_table), &persistent_script->script.function_table); in zend_accel_load_script()
H A Dzend_persist_calc.c412 zend_hash_persist_calc(&ce->function_table); in zend_persist_class_entry_calc()
413 ZEND_HASH_FOREACH_BUCKET(&ce->function_table, p) { in zend_persist_class_entry_calc()
586 …if (new_persistent_script->script.function_table.nNumUsed != new_persistent_script->script.functio… in zend_accel_script_persist_calc()
587 zend_hash_rehash(&new_persistent_script->script.function_table); in zend_accel_script_persist_calc()
589 zend_hash_persist_calc(&new_persistent_script->script.function_table); in zend_accel_script_persist_calc()
590 ZEND_HASH_FOREACH_BUCKET(&new_persistent_script->script.function_table, p) { in zend_accel_script_persist_calc()
H A Dzend_persist.c813 zend_hash_persist(&ce->function_table); in zend_persist_class_entry()
814 ZEND_HASH_FOREACH_BUCKET(&ce->function_table, p) { in zend_persist_class_entry()
819 HT_FLAGS(&ce->function_table) &= (HASH_FLAG_UNINITIALIZED | HASH_FLAG_STATIC_KEYS); in zend_persist_class_entry()
1027 …ce->iterator_funcs_ptr->zf_new_iterator = zend_hash_str_find_ptr(&ce->function_table, "getiterator… in zend_update_parent_ce()
1030 …ce->iterator_funcs_ptr->zf_rewind = zend_hash_str_find_ptr(&ce->function_table, "rewind", sizeof("… in zend_update_parent_ce()
1031 …ce->iterator_funcs_ptr->zf_valid = zend_hash_str_find_ptr(&ce->function_table, "valid", sizeof("va… in zend_update_parent_ce()
1032 …ce->iterator_funcs_ptr->zf_key = zend_hash_str_find_ptr(&ce->function_table, "key", sizeof("key") … in zend_update_parent_ce()
1033 …ce->iterator_funcs_ptr->zf_current = zend_hash_str_find_ptr(&ce->function_table, "current", sizeof… in zend_update_parent_ce()
1034 …ce->iterator_funcs_ptr->zf_next = zend_hash_str_find_ptr(&ce->function_table, "next", sizeof("next… in zend_update_parent_ce()
1212 zend_hash_persist(&script->script.function_table); in zend_accel_script_persist()
[all …]
H A DZendAccelerator.c586 ZEND_HASH_FOREACH_BUCKET(CG(function_table), p) { in accel_copy_permanent_strings()
642 ZEND_HASH_FOREACH_BUCKET(&ce->function_table, q) { in accel_copy_permanent_strings()
1773 orig_functions_count = EG(function_table)->nNumUsed; in opcache_compile_file()
1821 …zend_accel_move_user_functions(CG(function_table), CG(function_table)->nNumUsed - orig_functions_c… in opcache_compile_file()
3283 if (EG(function_table)) {
4326 Bucket *p = script->function_table.arData;
4327 Bucket *end = p + script->function_table.nNumUsed;
4329 zend_hash_extend(CG(function_table),
4330 CG(function_table)->nNumUsed + script->function_table.nNumUsed, 0);
4350 if (EG(function_table)) {
[all …]
H A Dzend_accelerator_module.c391 …if ((old_function = zend_hash_str_find_ptr(CG(function_table), "file_exists", sizeof("file_exists"…
395 …if ((old_function = zend_hash_str_find_ptr(CG(function_table), "is_file", sizeof("is_file")-1)) !=…
399 …if ((old_function = zend_hash_str_find_ptr(CG(function_table), "is_readable", sizeof("is_readable"…
648 if (zend_hash_num_elements(&ZCSG(preload_script)->script.function_table)) {
652 ZEND_HASH_FOREACH_PTR(&ZCSG(preload_script)->script.function_table, op_array) {
/PHP-8.0/ext/opcache/Optimizer/
H A Dzend_optimizer.h89 HashTable function_table; member
H A Dzend_optimizer.c801 if (script && (func = zend_hash_find_ptr(&script->function_table, function_name)) != NULL) { in zend_optimizer_get_called_func()
803 } else if ((func = zend_hash_find_ptr(EG(function_table), function_name)) != NULL) { in zend_optimizer_get_called_func()
819 if (script && (func = zend_hash_find_ptr(&script->function_table, Z_STR_P(function_name)))) { in zend_optimizer_get_called_func()
821 } else if ((func = zend_hash_find_ptr(EG(function_table), Z_STR_P(function_name))) != NULL) { in zend_optimizer_get_called_func()
838 zend_function *fbc = zend_hash_find_ptr(&ce->function_table, func_name); in zend_optimizer_get_called_func()
857 &op_array->scope->function_table, method_name); in zend_optimizer_get_called_func()
1328 &ctx->script->function_table, in zend_adjust_fcall_stack_size()
1384 ZEND_HASH_FOREACH_PTR(&script->function_table, op_array) { in zend_foreach_op_array()
1392 ZEND_HASH_FOREACH_PTR(&ce->function_table, op_array) { in zend_foreach_op_array()
1542 ZEND_HASH_FOREACH_STR_KEY_PTR(&ce->function_table, name, op_array) { in zend_optimize_script()
[all …]
/PHP-8.0/ext/spl/
H A Dspl_array.c211 …intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_array_object_new_ex()
215 …intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_array_object_new_ex()
227 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_array_object_new_ex()
238 …funcs_ptr->zf_rewind = zend_hash_str_find_ptr(&class_type->function_table, "rewind", sizeof("rewin… in spl_array_object_new_ex()
239 …funcs_ptr->zf_valid = zend_hash_str_find_ptr(&class_type->function_table, "valid", sizeof("valid")… in spl_array_object_new_ex()
240 … funcs_ptr->zf_key = zend_hash_str_find_ptr(&class_type->function_table, "key", sizeof("key") - 1); in spl_array_object_new_ex()
241 …funcs_ptr->zf_current = zend_hash_str_find_ptr(&class_type->function_table, "current", sizeof("cur… in spl_array_object_new_ex()
242 …funcs_ptr->zf_next = zend_hash_str_find_ptr(&class_type->function_table, "next", sizeof("next") - … in spl_array_object_new_ex()
1433 call_user_function(EG(function_table), NULL, &function_name, return_value, 1, params); in spl_array_method()
1442 call_user_function(EG(function_table), NULL, &function_name, return_value, 2, params); in spl_array_method()
[all …]
H A Dspl_fixedarray.c286 …intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_fixedarray_object_new_ex()
290 …intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_fixedarray_object_new_ex()
294 …intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_fixedarray_object_new_ex()
298 …intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_fixedarray_object_new_ex()
302 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_fixedarray_object_new_ex()
H A Dspl_dllist.c419 …intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_dllist_object_new_ex()
423 …intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_dllist_object_new_ex()
427 …intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_dllist_object_new_ex()
431 …intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_dllist_object_new_ex()
435 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_dllist_object_new_ex()
/PHP-8.0/ext/soap/
H A Dsoap.c1066 ft = &(Z_OBJCE(service->soap_object)->function_table); in PHP_METHOD()
1068 ft = &service->soap_class.ce->function_table; in PHP_METHOD()
1070 ft = EG(function_table); in PHP_METHOD()
1129 if ((f = zend_hash_find_ptr(EG(function_table), key)) == NULL) { in PHP_METHOD()
1146 if ((f = zend_hash_find_ptr(EG(function_table), key)) == NULL) { in PHP_METHOD()
1211 HashTable *function_table; local
1388 function_table = &((Z_OBJCE_P(soap_obj))->function_table);
1482 function_table = &((Z_OBJCE_P(soap_obj))->function_table);
1485 function_table = EG(function_table);
1487 function_table = service->soap_functions.ft;
[all …]
/PHP-8.0/sapi/fuzzer/
H A Dfuzzer-sapi.c278 call_user_function(CG(function_table), NULL, &func, &retval, nargs, args); in fuzzer_call_php_func_zval()
/PHP-8.0/ext/com_dotnet/
H A Dcom_wrapper.c493 zend_hash_internal_pointer_reset_ex(&Z_OBJCE(disp->object)->function_table, &pos); in generate_dispids()
495 zend_hash_get_current_key_ex(&Z_OBJCE(disp->object)->function_table, in generate_dispids()
506 zend_hash_move_forward_ex(&Z_OBJCE(disp->object)->function_table, &pos); in generate_dispids()
/PHP-8.0/ext/readline/
H A Dreadline_cli.c550 …rator_func(lc_text, textlen, &cli_completion_state, ce ? &ce->function_table : EG(function_table)); in cli_completion_generator()

Completed in 163 milliseconds

123