Home
last modified time | relevance | path

Searched refs:fn_flags (Results 1 – 25 of 43) sorted by relevance

12

/PHP-7.4/Zend/
H A Dzend_closures.c71 if (func->common.fn_flags & ZEND_ACC_STATIC) { in zend_valid_closure_binding()
86 && !(func->common.fn_flags & ZEND_ACC_STATIC)) { in zend_valid_closure_binding()
94 && (func->common.fn_flags & ZEND_ACC_USES_THIS)) { in zend_valid_closure_binding()
152 my_function.common.fn_flags &= ~ZEND_ACC_CLOSURE; in ZEND_METHOD()
305 if (mptr->common.fn_flags & ZEND_ACC_STATIC) { in zend_create_closure_from_callable()
317 call.fn_flags = mptr->common.fn_flags & ZEND_ACC_STATIC; in zend_create_closure_from_callable()
397 invoke->internal_function.fn_flags = in zend_get_closure_invoke_method()
400 invoke->internal_function.fn_flags |= in zend_get_closure_invoke_method()
703 closure->func.common.fn_flags |= ZEND_ACC_CLOSURE; in zend_create_closure()
721 && (func->common.fn_flags & ZEND_ACC_CLOSURE) in zend_create_closure()
[all …]
H A Dzend_inheritance.c194 if (fn_flags & ZEND_ACC_PUBLIC) { in zend_visibility_string()
196 } else if (fn_flags & ZEND_ACC_PRIVATE) { in zend_visibility_string()
199 ZEND_ASSERT(fn_flags & ZEND_ACC_PROTECTED); in zend_visibility_string()
455 if ((proto->common.fn_flags & ZEND_ACC_VARIADIC) in zend_do_perform_implementation_check()
772 child_flags = child->common.fn_flags; in do_inheritance_check_on_method_ex()
801 child->common.fn_flags |= ZEND_ACC_CHANGED; in do_inheritance_check_on_method_ex()
1549 fe->common.fn_flags |= ZEND_ACC_CTOR; in zend_add_magic_methods()
1565 … (existing_fn->common.fn_flags & ZEND_ACC_PPP_MASK) == (fn->common.fn_flags & ZEND_ACC_PPP_MASK) && in zend_add_trait_method()
1673 …fn_copy.common.fn_flags = alias->modifiers | (fn->common.fn_flags ^ (fn->common.fn_flags & ZEND_AC… in zend_traits_copy_functions()
1712 …fn_copy.common.fn_flags = alias->modifiers | (fn->common.fn_flags ^ (fn->common.fn_flags & ZEND_AC… in zend_traits_copy_functions()
[all …]
H A Dzend_opcode.c82 op_array->fn_flags = 0; in init_op_array()
113 if (function->fn_flags & ZEND_ACC_VARIADIC) { in zend_free_internal_arg_info()
433 if ((op_array->fn_flags & ZEND_ACC_HEAP_RT_CACHE) in destroy_op_array()
461 || !(op_array->fn_flags & ZEND_ACC_DONE_PASS_TWO)) { in destroy_op_array()
480 if (op_array->fn_flags & ZEND_ACC_DONE_PASS_TWO) { in destroy_op_array()
488 if (op_array->fn_flags & ZEND_ACC_HAS_RETURN_TYPE) { in destroy_op_array()
492 if (op_array->fn_flags & ZEND_ACC_VARIADIC) { in destroy_op_array()
925 op_array->fn_flags |= ZEND_ACC_DONE_PASS_TWO; in pass_two()
950 if (op_array->fn_flags & ZEND_ACC_HAS_FINALLY_BLOCK) { in pass_two()
961 if (op_array->fn_flags & ZEND_ACC_HAS_FINALLY_BLOCK) { in pass_two()
[all …]
H A Dzend_API.c2191 internal_function->fn_flags = ptr->flags; in zend_register_functions()
2194 internal_function->fn_flags = ZEND_ACC_PUBLIC; in zend_register_functions()
2401 ctor->common.fn_flags |= ZEND_ACC_CTOR; in zend_register_functions()
2402 if (ctor->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2405 ctor->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2408 dtor->common.fn_flags |= ZEND_ACC_DTOR; in zend_register_functions()
2409 if (dtor->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2412 dtor->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC; in zend_register_functions()
2415 if (clone->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
2439 if (__get->common.fn_flags & ZEND_ACC_STATIC) { in zend_register_functions()
[all …]
H A Dzend_object_handlers.c1219 if (fbc->common.fn_flags & ZEND_ACC_PRIVATE in zend_get_parent_private_method()
1280 func->fn_flags = ZEND_ACC_CALL_VIA_TRAMPOLINE | ZEND_ACC_PUBLIC; in zend_get_call_trampoline_func()
1282 func->fn_flags |= ZEND_ACC_STATIC; in zend_get_call_trampoline_func()
1359 if (fbc->op_array.fn_flags & ZEND_ACC_CHANGED) { in zend_std_get_method()
1365 } else if (fbc->op_array.fn_flags & ZEND_ACC_PUBLIC) { in zend_std_get_method()
1369 if (UNEXPECTED(fbc->op_array.fn_flags & ZEND_ACC_PRIVATE) in zend_std_get_method()
1448 if (UNEXPECTED(!(fbc->common.fn_flags & ZEND_ACC_STATIC))) { in zend_std_get_static_method()
1452 if (!(fbc->op_array.fn_flags & ZEND_ACC_PUBLIC)) { in zend_std_get_static_method()
1455 if (UNEXPECTED(fbc->op_array.fn_flags & ZEND_ACC_PRIVATE) in zend_std_get_static_method()
1601 if (UNEXPECTED(constructor->op_array.fn_flags & ZEND_ACC_PRIVATE) in zend_std_get_constructor()
[all …]
H A Dzend_compile.c5405 op_array->fn_flags |= ZEND_ACC_VARIADIC; in zend_compile_params()
5529 if (op_array->fn_flags & ZEND_ACC_VARIADIC) { in zend_compile_params()
5736 op_array->fn_flags |= ZEND_ACC_ABSTRACT; in zend_begin_method_decl()
5739 if (op_array->fn_flags & ZEND_ACC_ABSTRACT) { in zend_begin_method_decl()
5740 if (op_array->fn_flags & ZEND_ACC_PRIVATE) { in zend_begin_method_decl()
5957 if (op_array->fn_flags & ZEND_ACC_CLOSURE) { in zend_begin_func_decl()
5993 op_array->fn_flags |= ZEND_ACC_PRELOADED; in zend_compile_func_decl()
6001 op_array->fn_flags |= (orig_op_array->fn_flags & ZEND_ACC_STRICT_TYPES); in zend_compile_func_decl()
6002 op_array->fn_flags |= decl->flags; in zend_compile_func_decl()
6009 op_array->fn_flags |= ZEND_ACC_CLOSURE; in zend_compile_func_decl()
[all …]
H A Dzend_compile.h359 char *zend_visibility_string(uint32_t fn_flags);
418 uint32_t fn_flags; member
467 uint32_t fn_flags; member
490 uint32_t fn_flags; member
583 (((call)->func->common.fn_flags & ZEND_ACC_STRICT_TYPES) != 0)
949 if (EXPECTED((zf->common.fn_flags & ZEND_ACC_VARIADIC) == 0)) { in zend_check_arg_send_type()
H A Dzend_objects.c105 if (destructor->op_array.fn_flags & (ZEND_ACC_PRIVATE|ZEND_ACC_PROTECTED)) { in zend_objects_destroy_object()
106 if (destructor->op_array.fn_flags & ZEND_ACC_PRIVATE) { in zend_objects_destroy_object()
H A Dzend_execute_API.c729 if ((func->common.fn_flags & ZEND_ACC_STATIC) || !fci_cache->object) { in zend_call_function()
742 if (UNEXPECTED(func->common.fn_flags & ZEND_ACC_DEPRECATED)) { 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()
809 if (func->common.fn_flags & ZEND_ACC_FAKE_CLOSURE) { in zend_call_function()
816 int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; in zend_call_function()
827 int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; in zend_call_function()
H A Dzend_vm_def.h3587 if (UNEXPECTED((fbc->common.fn_flags & ZEND_ACC_STATIC) != 0)) {
3722 if (!(fbc->common.fn_flags & ZEND_ACC_STATIC)) {
3865 if (func->common.fn_flags & ZEND_ACC_CLOSURE) {
3869 if (func->common.fn_flags & ZEND_ACC_FAKE_CLOSURE) {
4087 if (UNEXPECTED(fbc->common.fn_flags & ZEND_ACC_HAS_TYPE_HINTS)
4182 if (UNEXPECTED(fbc->common.fn_flags & ZEND_ACC_HAS_TYPE_HINTS)
4274 && !(EX(func)->op_array.fn_flags & ZEND_ACC_RETURN_REFERENCE)
5557 if (clone && !(clone->common.fn_flags & ZEND_ACC_PUBLIC)) {
5560 if (UNEXPECTED(clone->common.fn_flags & ZEND_ACC_PRIVATE)
7655 if (UNEXPECTED((func->common.fn_flags & ZEND_ACC_STATIC) ||
[all …]
H A Dzend_execute.c1075 } else if (UNEXPECTED(zf->common.fn_flags & ZEND_ACC_VARIADIC)) { in zend_verify_arg_type()
1113 ZEND_ASSERT(zf->common.fn_flags & ZEND_ACC_VARIADIC); in zend_verify_variadic_arg_type()
2030 if (fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) { in zend_non_static_method_call()
3545 if (EXPECTED((op_array->fn_flags & ZEND_ACC_HAS_TYPE_HINTS) == 0)) { in zend_copy_extra_args()
3699 ZEND_ASSERT(op_array->fn_flags & ZEND_ACC_HEAP_RT_CACHE); in i_init_code_execute_data()
3924 if (call->func->common.fn_flags & ZEND_ACC_CLOSURE) { in cleanup_unfinished_calls()
4073 if (UNEXPECTED(!(fbc->common.fn_flags & ZEND_ACC_STATIC))) { in zend_init_dynamic_call_string()
4120 if (fbc->common.fn_flags & ZEND_ACC_CLOSURE) { in zend_init_dynamic_call_object()
4124 if (fbc->common.fn_flags & ZEND_ACC_FAKE_CLOSURE) { in zend_init_dynamic_call_object()
4197 if (!(fbc->common.fn_flags & ZEND_ACC_STATIC)) { in zend_init_dynamic_call_array()
[all …]
/PHP-7.4/ext/opcache/Optimizer/
H A Doptimize_func_calls.c97 && !(func->op_array.fn_flags & (ZEND_ACC_ABSTRACT|ZEND_ACC_HAS_TYPE_HINTS)) in zend_try_inline_call()
99 && !(func->op_array.fn_flags & (ZEND_ACC_TRAIT_CLONE)) in zend_try_inline_call()
107 num_args += (func->op_array.fn_flags & ZEND_ACC_VARIADIC) != 0; in zend_try_inline_call()
110 && !(func->op_array.fn_flags & ZEND_ACC_STATIC)) { in zend_try_inline_call()
H A Dpass3.c131 if (op_array->fn_flags & ZEND_ACC_HAS_FINALLY_BLOCK) { in zend_optimizer_pass3()
152 if (op_array->fn_flags & ZEND_ACC_HAS_FINALLY_BLOCK) { in zend_optimizer_pass3()
167 if (op_array->fn_flags & ZEND_ACC_HAS_FINALLY_BLOCK) { in zend_optimizer_pass3()
218 if (op_array->fn_flags & ZEND_ACC_HAS_FINALLY_BLOCK) { in zend_optimizer_pass3()
376 if (op_array->fn_flags & ZEND_ACC_HAS_FINALLY_BLOCK) { in zend_optimizer_pass3()
H A Dzend_optimizer.c663 || (op_array->fn_flags & ZEND_ACC_RETURN_REFERENCE)) { in zend_optimizer_replace_by_const()
855 zend_bool is_public = (fbc->common.fn_flags & ZEND_ACC_PUBLIC) != 0; in zend_optimizer_get_called_func()
873 zend_bool is_final = (fbc->common.fn_flags & ZEND_ACC_FINAL) != 0; in zend_optimizer_get_called_func()
1123 if (op_array->fn_flags & ZEND_ACC_DONE_PASS_TWO) { in zend_redo_pass_two()
1210 if (op_array->fn_flags & ZEND_ACC_DONE_PASS_TWO) { in zend_redo_pass_two_ex()
1363 && !(op_array->fn_flags & ZEND_ACC_TRAIT_CLONE)) { in zend_optimize_script()
1386 if (call_graph.op_arrays[i]->fn_flags & ZEND_ACC_HAS_RETURN_TYPE) { in zend_optimize_script()
1479 && !(op_array->fn_flags & ZEND_ACC_TRAIT_CLONE)) { in zend_optimize_script()
1497 uint32_t fn_flags = op_array->fn_flags; in zend_optimize_script() local
1502 op_array->fn_flags = fn_flags; in zend_optimize_script()
[all …]
H A Dnop_removal.c95 if (op_array->fn_flags & ZEND_ACC_EARLY_BINDING) { in zend_optimizer_nop_removal()
H A Doptimize_temp_vars_5.c109 if ((op_array->fn_flags & ZEND_ACC_HAS_FINALLY_BLOCK) && in zend_optimize_temporary_variables()
H A Dzend_dfg.c94 || (op_array->fn_flags & ZEND_ACC_RETURN_REFERENCE)) { in zend_build_dfg()
/PHP-7.4/ext/reflection/
H A Dphp_reflection.c418 if (mptr->common.fn_flags & ZEND_ACC_STATIC in _class_string()
432 if (mptr->common.fn_flags & ZEND_ACC_STATIC in _class_string()
677 if (fptr->common.fn_flags & ZEND_ACC_VARIADIC) { in _function_parameter_string()
761 if (fptr->common.fn_flags & ZEND_ACC_CTOR) { in _function_string()
764 if (fptr->common.fn_flags & ZEND_ACC_DTOR) { in _function_string()
772 if (fptr->common.fn_flags & ZEND_ACC_FINAL) { in _function_string()
775 if (fptr->common.fn_flags & ZEND_ACC_STATIC) { in _function_string()
813 if (fptr->common.fn_flags & ZEND_ACC_CLOSURE) { in _function_string()
1079 RETURN_BOOL(mptr->common.fn_flags & mask); in _function_check_flag()
3127 if (mptr->common.fn_flags & ZEND_ACC_STATIC) { in reflection_method_invoke()
[all …]
/PHP-7.4/ext/zend_test/
H A Dtest.c152 fptr->fn_flags = ZEND_ACC_CALL_VIA_HANDLER; in zend_test_class_method_get()
168 fptr->fn_flags = ZEND_ACC_CALL_VIA_HANDLER|ZEND_ACC_STATIC; in zend_test_class_static_method_get()
/PHP-7.4/ext/opcache/
H A Dzend_persist.c317 if (op_array->fn_flags & ZEND_ACC_HAS_RETURN_TYPE) { in zend_persist_op_array_ex()
322 if (op_array->fn_flags & ZEND_ACC_HAS_RETURN_TYPE) { in zend_persist_op_array_ex()
430 if (op_array->fn_flags & ZEND_ACC_DONE_PASS_TWO) { in zend_persist_op_array_ex()
486 if (op_array->fn_flags & ZEND_ACC_HAS_RETURN_TYPE) { in zend_persist_op_array_ex()
490 if (op_array->fn_flags & ZEND_ACC_VARIADIC) { in zend_persist_op_array_ex()
506 if (op_array->fn_flags & ZEND_ACC_HAS_RETURN_TYPE) { in zend_persist_op_array_ex()
548 op_array->fn_flags |= ZEND_ACC_IMMUTABLE; in zend_persist_op_array()
567 if (op_array->fn_flags & ZEND_ACC_ARENA_ALLOCATED) { in zend_persist_class_method()
609 op_array->fn_flags |= ZEND_ACC_IMMUTABLE; in zend_persist_class_method()
H A Dzend_persist_calc.c213 if (op_array->fn_flags & ZEND_ACC_VARIADIC) { in zend_persist_op_array_calc_ex()
216 if (op_array->fn_flags & ZEND_ACC_HAS_RETURN_TYPE) { in zend_persist_op_array_calc_ex()
278 if (op_array->fn_flags & ZEND_ACC_ARENA_ALLOCATED) { in zend_persist_class_method_calc()
H A Dzend_file_cache.c422 if (op_array->fn_flags & ZEND_ACC_IMMUTABLE) {
531 if (op_array->fn_flags & ZEND_ACC_HAS_RETURN_TYPE) {
534 if (op_array->fn_flags & ZEND_ACC_VARIADIC) {
1131 if (op_array->fn_flags & ZEND_ACC_IMMUTABLE) {
1243 if (op_array->fn_flags & ZEND_ACC_HAS_RETURN_TYPE) {
1246 if (op_array->fn_flags & ZEND_ACC_VARIADIC) {
H A DZendAccelerator.c609 if (Z_FUNC(p->val)->common.fn_flags & ZEND_ACC_VARIADIC) { in accel_copy_permanent_strings()
1786 (op_array->fn_flags & ZEND_ACC_EARLY_BINDING) ? in opcache_compile_file()
3649 if (fptr->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE) { in preload_needed_types_known()
3840 function->common.fn_flags &= ~ZEND_ACC_PRELOADED; in preload_link()
3872 if (op_array->fn_flags & ZEND_ACC_EARLY_BINDING) { in preload_link()
3875 op_array->fn_flags &= ~ZEND_ACC_EARLY_BINDING; in preload_link()
4057 if (!(op_array->fn_flags & ZEND_ACC_TRAIT_CLONE)) { in preload_register_trait_methods()
4069 if (op_array->fn_flags & ZEND_ACC_TRAIT_CLONE) { in preload_fix_trait_methods()
4074 uint32_t fn_flags = op_array->fn_flags; in preload_fix_trait_methods() local
4079 op_array->fn_flags = fn_flags; in preload_fix_trait_methods()
[all …]
/PHP-7.4/ext/spl/
H A Dphp_spl.c383 UNEXPECTED(alfi->func_ptr->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) { in autoload_func_info_dtor()
429 if (UNEXPECTED(func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) { in PHP_FUNCTION()
525 if (!obj_ptr && alfi.func_ptr && !(alfi.func_ptr->common.fn_flags & ZEND_ACC_STATIC)) { in PHP_FUNCTION()
605 if (obj_ptr && !(alfi.func_ptr->common.fn_flags & ZEND_ACC_STATIC)) { in PHP_FUNCTION()
646 if (obj_ptr && !(alfi.func_ptr->common.fn_flags & ZEND_ACC_STATIC)) { in PHP_FUNCTION()
652 if (UNEXPECTED(alfi.func_ptr->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) { in PHP_FUNCTION()
/PHP-7.4/ext/pdo/
H A Dpdo_dbh.c525 …if (dbstmt_ce->constructor && !(dbstmt_ce->constructor->common.fn_flags & (ZEND_ACC_PRIVATE|ZEND_A… in PHP_METHOD()
793 …if (pce->constructor && !(pce->constructor->common.fn_flags & (ZEND_ACC_PRIVATE|ZEND_ACC_PROTECTED… in pdo_dbh_attribute_set()
1308 func.fn_flags = funcs->flags | ZEND_ACC_NEVER_CACHE; in pdo_hash_methods()
1310 func.fn_flags = ZEND_ACC_PUBLIC | ZEND_ACC_NEVER_CACHE; in pdo_hash_methods()
1323 func.fn_flags |= ZEND_ACC_RETURN_REFERENCE; in pdo_hash_methods()
1326 func.fn_flags |= ZEND_ACC_VARIADIC; in pdo_hash_methods()

Completed in 171 milliseconds

12