Home
last modified time | relevance | path

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

123

/PHP-8.1/sapi/phpdbg/
H A Dphpdbg_print.c138 zend_hash_num_elements(&ce->function_table)); in PHPDBG_PRINT()
140 if (zend_hash_num_elements(&ce->function_table)) { in PHPDBG_PRINT()
143 ZEND_HASH_FOREACH_PTR(&ce->function_table, method) { in PHPDBG_PRINT()
163 if ((fbc = zend_hash_find_ptr(&ce->function_table, lcname))) { in PHPDBG_PRINT()
184 HashTable *func_table = EG(function_table); in PHPDBG_PRINT()
197 func_table = &scope->function_table; in PHPDBG_PRINT()
202 } else if (!EG(function_table)) { in PHPDBG_PRINT()
206 func_table = EG(function_table); in PHPDBG_PRINT()
294 ZEND_HASH_FOREACH_PTR(&ce->function_table, method) { in phpdbg_print_opcodes_ce()
307 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()
188 HashTable *func_table = EG(function_table); in phpdbg_list_function_byname()
200 func_table = &scope->function_table; in phpdbg_list_function_byname()
205 } else if (!EG(function_table)) { in phpdbg_list_function_byname()
209 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()
434 ZEND_HASH_FOREACH_PTR(EG(function_table), zf) { in PHPDBG_INFO()
/PHP-8.1/ext/opcache/
H A Dzend_accelerator_util_funcs.c36 zend_hash_init(&persistent_script->script.function_table, 0, NULL, ZEND_FUNCTION_DTOR, 0); in create_persistent_script()
51 persistent_script->script.function_table.nNumUsed = 0; in free_persistent_script()
57 zend_hash_destroy(&persistent_script->script.function_table); in free_persistent_script()
79 dst = &script->function_table; in zend_accel_move_user_functions()
244 if (zend_hash_num_elements(&persistent_script->script.function_table) > 0) { in zend_accel_load_script()
245 zend_accel_function_hash_copy(CG(function_table), &persistent_script->script.function_table); in zend_accel_load_script()
H A Dzend_persist_calc.c409 zend_hash_persist_calc(&ce->function_table); in zend_persist_class_entry_calc()
410 ZEND_HASH_FOREACH_BUCKET(&ce->function_table, p) { in zend_persist_class_entry_calc()
597 …if (new_persistent_script->script.function_table.nNumUsed != new_persistent_script->script.functio… in zend_accel_script_persist_calc()
598 zend_hash_rehash(&new_persistent_script->script.function_table); in zend_accel_script_persist_calc()
600 zend_hash_persist_calc(&new_persistent_script->script.function_table); in zend_accel_script_persist_calc()
601 ZEND_HASH_FOREACH_BUCKET(&new_persistent_script->script.function_table, p) { in zend_accel_script_persist_calc()
H A Dzend_persist.c885 zend_hash_persist(&ce->function_table); in zend_persist_class_entry()
886 ZEND_HASH_FOREACH_BUCKET(&ce->function_table, p) { in zend_persist_class_entry()
891 HT_FLAGS(&ce->function_table) &= (HASH_FLAG_UNINITIALIZED | HASH_FLAG_STATIC_KEYS); in zend_persist_class_entry()
1112 …ce->iterator_funcs_ptr->zf_rewind = zend_hash_str_find_ptr(&ce->function_table, "rewind", sizeof("… in zend_update_parent_ce()
1113 …ce->iterator_funcs_ptr->zf_valid = zend_hash_str_find_ptr(&ce->function_table, "valid", sizeof("va… in zend_update_parent_ce()
1114 …ce->iterator_funcs_ptr->zf_key = zend_hash_str_find_ptr(&ce->function_table, "key", sizeof("key") … in zend_update_parent_ce()
1116 …ce->iterator_funcs_ptr->zf_next = zend_hash_str_find_ptr(&ce->function_table, "next", sizeof("next… in zend_update_parent_ce()
1232 ZEND_HASH_FOREACH_PTR(&ce->function_table, op_array) { in zend_accel_persist_class_table()
1248 ZEND_HASH_FOREACH_PTR(&ce->function_table, op_array) { in zend_accel_persist_class_table()
1317 zend_hash_persist(&script->script.function_table); in zend_accel_script_persist()
[all …]
H A DZendAccelerator.c608 ZEND_HASH_FOREACH_BUCKET(CG(function_table), p) { in accel_copy_permanent_strings()
665 ZEND_HASH_FOREACH_BUCKET(&ce->function_table, q) { in accel_copy_permanent_strings()
1784 orig_functions_count = EG(function_table)->nNumUsed; in opcache_compile_file()
3508 if (EG(function_table)) {
4336 Bucket *p = script->function_table.arData;
4337 Bucket *end = p + script->function_table.nNumUsed;
4339 zend_hash_extend(CG(function_table),
4340 CG(function_table)->nNumUsed + script->function_table.nNumUsed, 0);
4360 if (EG(function_table)) {
4550 preload_move_user_functions(CG(function_table), &script->script.function_table);
[all …]
H A Dzend_accelerator_module.c404 …if ((old_function = zend_hash_str_find_ptr(CG(function_table), "file_exists", sizeof("file_exists"…
408 …if ((old_function = zend_hash_str_find_ptr(CG(function_table), "is_file", sizeof("is_file")-1)) !=…
412 …if ((old_function = zend_hash_str_find_ptr(CG(function_table), "is_readable", sizeof("is_readable"…
661 if (zend_hash_num_elements(&ZCSG(preload_script)->script.function_table)) {
665 ZEND_HASH_FOREACH_PTR(&ZCSG(preload_script)->script.function_table, op_array) {
/PHP-8.1/Zend/
H A Dzend_globals.h62 #undef function_table
80 HashTable *function_table; /* function symbol table */ member
166 HashTable *function_table; /* function symbol table */ member
H A Dzend_enum.c98 if (zend_hash_str_exists(&ce->function_table, forbidden_method, strlen(forbidden_method))) { in zend_verify_enum_magic_methods()
317 if (!zend_hash_add_ptr(&ce->function_table, ZSTR_KNOWN(ZEND_STR_CASES), cases_function)) { in zend_enum_register_funcs()
334 if (!zend_hash_add_ptr(&ce->function_table, ZSTR_KNOWN(ZEND_STR_FROM), from_function)) { in zend_enum_register_funcs()
352 &ce->function_table, ZSTR_KNOWN(ZEND_STR_TRYFROM_LOWERCASE), try_from_function)) { in zend_enum_register_funcs()
407 ce, unit_enum_methods, &ce->function_table, EG(current_module)->type); in zend_register_internal_enum()
411 ce, backed_enum_methods, &ce->function_table, EG(current_module)->type); in zend_register_internal_enum()
H A Dzend_inheritance.c1570 if (zend_hash_num_elements(&parent_ce->function_table)) { in zend_do_inheritance_ex()
1571 zend_hash_extend(&ce->function_table, in zend_do_inheritance_ex()
1572 zend_hash_num_elements(&ce->function_table) + in zend_do_inheritance_ex()
2135 ZEND_HASH_FOREACH_PTR(&ce->function_table, fn) { in zend_do_traits_method_binding()
2323 ZEND_HASH_FOREACH_PTR(&ce->function_table, func) { in zend_verify_abstract_class()
2571 ce->function_table.pDestructor = ZEND_FUNCTION_DTOR; in zend_lazy_class_load()
2573 p = emalloc(HT_SIZE(&ce->function_table)); in zend_lazy_class_load()
2574 memcpy(p, HT_GET_DATA_ADDR(&ce->function_table), HT_USED_SIZE(&ce->function_table)); in zend_lazy_class_load()
2575 HT_SET_DATA_ADDR(&ce->function_table, p); in zend_lazy_class_load()
2576 p = ce->function_table.arData; in zend_lazy_class_load()
[all …]
H A Dzend.c60 # define GLOBAL_FUNCTION_TABLE CG(function_table)
710 compiler_globals->function_table = (HashTable *) malloc(sizeof(HashTable)); in compiler_globals_ctor()
711 zend_hash_init(compiler_globals->function_table, 1024, NULL, ZEND_FUNCTION_DTOR, 1); in compiler_globals_ctor()
749 if (compiler_globals->function_table != GLOBAL_FUNCTION_TABLE) { in compiler_globals_dtor()
750 zend_hash_destroy(compiler_globals->function_table); in compiler_globals_dtor()
751 free(compiler_globals->function_table); in compiler_globals_dtor()
981 compiler_globals->function_table = (HashTable *) malloc(sizeof(HashTable)); in zend_startup()
984 *compiler_globals->function_table = *GLOBAL_FUNCTION_TABLE; in zend_startup()
1076 *GLOBAL_FUNCTION_TABLE = *compiler_globals->function_table; in zend_post_startup()
1085 free(compiler_globals->function_table); in zend_post_startup()
[all …]
H A Dzend_execute_API.c145 EG(function_table) = CG(function_table); in init_executor()
189 EG(persistent_functions_count) = EG(function_table)->nNumUsed; in init_executor()
303 ZEND_HASH_REVERSE_FOREACH_VAL(EG(function_table), zv) { in zend_shutdown_executor_values()
352 ZEND_HASH_FOREACH_PTR(&ce->function_table, op_array) { in zend_shutdown_executor_values()
423 zend_hash_discard(EG(function_table), EG(persistent_functions_count)); in shutdown_executor()
429 zend_hash_reverse_apply(EG(function_table), clean_non_persistent_function_full); in shutdown_executor()
432 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(function_table), key, zv) { in shutdown_executor()
H A Dzend_builtin_functions.c841 ZEND_HASH_FOREACH_PTR(&ce->function_table, mptr) { in ZEND_FUNCTION()
882 func = zend_hash_find_ptr(&ce->function_table, lcname); in ZEND_FUNCTION()
1046 exists = zend_hash_exists(EG(function_table), lcname); in ZEND_FUNCTION()
1312 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(function_table), key, func) { in ZEND_FUNCTION()
1905 ZEND_HASH_FOREACH_PTR(CG(function_table), zif) { in ZEND_FUNCTION()
H A Dzend_interfaces.c57 &obj_ce->function_table, function_name, function_name_len); in zend_call_method()
296 &class_type->function_table, "getiterator", sizeof("getiterator") - 1); in zend_implement_aggregate()
/PHP-8.1/Zend/Optimizer/
H A Dzend_optimizer.h89 HashTable function_table; member
H A Dzend_optimizer.c773 if (script && (func = zend_hash_find_ptr(&script->function_table, function_name)) != NULL) { in zend_optimizer_get_called_func()
775 } else if ((func = zend_hash_find_ptr(EG(function_table), function_name)) != NULL) { in zend_optimizer_get_called_func()
791 if (script && (func = zend_hash_find_ptr(&script->function_table, Z_STR_P(function_name)))) { in zend_optimizer_get_called_func()
793 } else if ((func = zend_hash_find_ptr(EG(function_table), Z_STR_P(function_name))) != NULL) { in zend_optimizer_get_called_func()
810 zend_function *fbc = zend_hash_find_ptr(&ce->function_table, func_name); in zend_optimizer_get_called_func()
829 &op_array->scope->function_table, method_name); in zend_optimizer_get_called_func()
1300 &ctx->script->function_table, in zend_adjust_fcall_stack_size()
1365 ZEND_HASH_FOREACH_PTR(&script->function_table, op_array) { in zend_foreach_op_array()
1373 ZEND_HASH_FOREACH_PTR(&ce->function_table, op_array) { in zend_foreach_op_array()
1533 ZEND_HASH_FOREACH_STR_KEY_PTR(&ce->function_table, name, op_array) { in zend_optimize_script()
[all …]
/PHP-8.1/ext/spl/
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()
1470 call_user_function(EG(function_table), NULL, &function_name, return_value, 1, params); in spl_array_method()
1479 call_user_function(EG(function_table), NULL, &function_name, return_value, 2, params); in spl_array_method()
[all …]
H A Dspl_fixedarray.c315 …methods.fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_fixedarray_object_new_ex()
319 …methods.fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_fixedarray_object_new_ex()
323 …methods.fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_fixedarray_object_new_ex()
327 …methods.fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_fixedarray_object_new_ex()
331 …methods.fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_fixedarray_object_new_ex()
H A Dspl_dllist.c370 …intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof(… in spl_dllist_object_new_ex()
374 …intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof(… in spl_dllist_object_new_ex()
378 …intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", size… in spl_dllist_object_new_ex()
382 …intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeo… in spl_dllist_object_new_ex()
386 …intern->fptr_count = zend_hash_str_find_ptr(&class_type->function_table, "count", sizeof("count") … in spl_dllist_object_new_ex()
/PHP-8.1/ext/zend_test/
H A Dtest.c670 …zend_hash_str_find_ptr(CG(function_table), "zend_test_parameter_with_attribute", sizeof("zend_test… in PHP_MINIT_FUNCTION()
685 …zend_hash_str_find_ptr(&zend_test_class_with_method_with_parameter_attribute->function_table, "no_… in PHP_MINIT_FUNCTION()
694 …zend_hash_str_find_ptr(&zend_test_class_with_method_with_parameter_attribute->function_table, "ove… in PHP_MINIT_FUNCTION()
709 …ind_ptr(&zend_test_child_class_with_method_with_parameter_attribute->function_table, "override", s… in PHP_MINIT_FUNCTION()
/PHP-8.1/sapi/fuzzer/
H A Dfuzzer-sapi.c281 call_user_function(CG(function_table), NULL, &func, &retval, nargs, args); in fuzzer_call_php_func_zval()
/PHP-8.1/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.1/ext/soap/
H A Dsoap.c1058 ft = &(Z_OBJCE(service->soap_object)->function_table); in PHP_METHOD()
1060 ft = &service->soap_class.ce->function_table; in PHP_METHOD()
1062 ft = EG(function_table); in PHP_METHOD()
1138 if ((f = zend_hash_find_ptr(EG(function_table), key)) == NULL) { in PHP_METHOD()
1203 HashTable *function_table; local
1377 function_table = &((Z_OBJCE_P(soap_obj))->function_table);
1437 function_table = &((Z_OBJCE_P(soap_obj))->function_table);
1440 function_table = EG(function_table);
1442 function_table = service->soap_functions.ft;
1463 if (zend_hash_exists(function_table, fn_name) ||
[all …]
/PHP-8.1/ext/readline/
H A Dreadline_cli.c560 …rator_func(lc_text, textlen, &cli_completion_state, ce ? &ce->function_table : EG(function_table)); in cli_completion_generator()

Completed in 144 milliseconds

123