Lines Matching refs:func

382 				zend_function *func = Z_PTR_P(zv);  in shutdown_executor()  local
386 destroy_op_array(&func->op_array); in shutdown_executor()
436 zend_function *func; in get_active_class_name() local
445 func = EG(current_execute_data)->func; in get_active_class_name()
446 switch (func->type) { in get_active_class_name()
450 zend_class_entry *ce = func->common.scope; in get_active_class_name()
468 zend_function *func; in get_active_function_name() local
473 func = EG(current_execute_data)->func; in get_active_function_name()
474 switch (func->type) { in get_active_function_name()
476 zend_string *function_name = func->common.function_name; in get_active_function_name()
486 return ZSTR_VAL(func->common.function_name); in get_active_function_name()
498 while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->type))) { in zend_get_executed_filename()
502 return ZSTR_VAL(ex->func->op_array.filename); in zend_get_executed_filename()
513 while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->type))) { in zend_get_executed_filename_ex()
517 return ex->func->op_array.filename; in zend_get_executed_filename_ex()
528 while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->type))) { in zend_get_executed_lineno()
550 } else if (ex->func && (ZEND_USER_CODE(ex->func->type) || ex->func->common.scope)) { in zend_get_executed_scope()
551 return ex->func->common.scope; in zend_get_executed_scope()
654 zend_function *func; in zend_call_function() local
678 } else if (EG(current_execute_data)->func && in zend_call_function()
679 ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && in zend_call_function()
689 dummy_execute_data.func = NULL; in zend_call_function()
728 func = fci_cache->function_handler; in zend_call_function()
729 if ((func->common.fn_flags & ZEND_ACC_STATIC) || !fci_cache->object) { in zend_call_function()
740 func, fci->param_count, object_or_called_scope); in zend_call_function()
742 if (UNEXPECTED(func->common.fn_flags & ZEND_ACC_DEPRECATED)) { in zend_call_function()
744 func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", in zend_call_function()
745 func->common.scope ? "::" : "", in zend_call_function()
746 ZSTR_VAL(func->common.function_name)); in zend_call_function()
762 if (ARG_SHOULD_BE_SENT_BY_REF(func, i + 1)) { in zend_call_function()
767 } else if (!ARG_MAY_BE_SENT_BY_REF(func, i + 1)) { in zend_call_function()
772 func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", in zend_call_function()
773 func->common.scope ? "::" : "", in zend_call_function()
774 ZSTR_VAL(func->common.function_name)); in zend_call_function()
789 !(func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) { in zend_call_function()
804 if (UNEXPECTED(func->op_array.fn_flags & ZEND_ACC_CLOSURE)) { in zend_call_function()
807 GC_ADDREF(ZEND_CLOSURE_OBJECT(func)); in zend_call_function()
809 if (func->common.fn_flags & ZEND_ACC_FAKE_CLOSURE) { in zend_call_function()
815 if (func->type == ZEND_USER_FUNCTION) { in zend_call_function()
816 int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; in zend_call_function()
819 zend_init_func_execute_data(call, &func->op_array, fci->retval); in zend_call_function()
826 } else if (func->type == ZEND_INTERNAL_FUNCTION) { in zend_call_function()
827 int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; in zend_call_function()
833 func->internal_function.handler(call, fci->retval); in zend_call_function()
856 fci->object->handlers->call_method(func->common.function_name, fci->object, call, fci->retval); in zend_call_function()
864 if (func->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY) { in zend_call_function()
865 zend_string_release_ex(func->common.function_name, 0); in zend_call_function()
867 efree(func); in zend_call_function()
884 } else if (EG(current_execute_data)->func && in zend_call_function()
885 ZEND_USER_CODE(EG(current_execute_data)->func->common.type)) { in zend_call_function()
948 zend_function *func = zend_fetch_function(ZSTR_KNOWN(ZEND_STR_MAGIC_AUTOLOAD)); in zend_lookup_class_ex() local
950 if (func) { in zend_lookup_class_ex()
951 EG(autoload_func) = func; in zend_lookup_class_ex()
1035 } else if (ex->func) { in zend_get_called_scope()
1036 if (ex->func->type != ZEND_INTERNAL_FUNCTION || ex->func->common.scope) { in zend_get_called_scope()
1051 } else if (ex->func) { in zend_get_this_object()
1052 if (ex->func->type != ZEND_INTERNAL_FUNCTION || ex->func->common.scope) { in zend_get_this_object()
1476 while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->common.type))) { in zend_rebuild_symbol_table()
1489 if (!ex->func->op_array.last_var) { in zend_rebuild_symbol_table()
1492 zend_hash_extend(symbol_table, ex->func->op_array.last_var, 0); in zend_rebuild_symbol_table()
1494 symbol_table = ex->symbol_table = zend_new_array(ex->func->op_array.last_var); in zend_rebuild_symbol_table()
1495 if (!ex->func->op_array.last_var) { in zend_rebuild_symbol_table()
1501 if (EXPECTED(ex->func->op_array.last_var)) { in zend_rebuild_symbol_table()
1502 zend_string **str = ex->func->op_array.vars; in zend_rebuild_symbol_table()
1503 zend_string **end = str + ex->func->op_array.last_var; in zend_rebuild_symbol_table()
1518 zend_op_array *op_array = &execute_data->func->op_array; in zend_attach_symbol_table()
1553 zend_op_array *op_array = &execute_data->func->op_array; in zend_detach_symbol_table()
1580 while (execute_data && (!execute_data->func || !ZEND_USER_CODE(execute_data->func->common.type))) { in zend_set_local_var()
1587 zend_op_array *op_array = &execute_data->func->op_array; in zend_set_local_var()
1623 while (execute_data && (!execute_data->func || !ZEND_USER_CODE(execute_data->func->common.type))) { in zend_set_local_var_str()
1630 zend_op_array *op_array = &execute_data->func->op_array; in zend_set_local_var_str()