Lines Matching refs:fptr
2657 uint32_t num_args, const zend_class_entry *ce, const zend_function *fptr, int error_type) in zend_check_magic_method_args() argument
2659 if (fptr->common.num_args != num_args) { in zend_check_magic_method_args()
2662 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name)); in zend_check_magic_method_args()
2665 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name)); in zend_check_magic_method_args()
2668 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name), num_args); in zend_check_magic_method_args()
2673 if (QUICK_ARG_SHOULD_BE_SENT_BY_REF(fptr, i + 1)) { in zend_check_magic_method_args()
2675 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name)); in zend_check_magic_method_args()
2681 …g_type(uint32_t arg_num, const zend_class_entry *ce, const zend_function *fptr, int error_type, in… in zend_check_magic_method_arg_type() argument
2684 ZEND_TYPE_IS_SET(fptr->common.arg_info[arg_num].type) in zend_check_magic_method_arg_type()
2685 && !(ZEND_TYPE_FULL_MASK(fptr->common.arg_info[arg_num].type) & arg_type) in zend_check_magic_method_arg_type()
2688 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name), in zend_check_magic_method_arg_type()
2689 arg_num + 1, ZSTR_VAL(fptr->common.arg_info[arg_num].name), in zend_check_magic_method_arg_type()
2694 …magic_method_return_type(const zend_class_entry *ce, const zend_function *fptr, int error_type, in… in zend_check_magic_method_return_type() argument
2696 if (!(fptr->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE)) { in zend_check_magic_method_return_type()
2701 if (ZEND_TYPE_PURE_MASK(fptr->common.arg_info[-1].type) & MAY_BE_NEVER) { in zend_check_magic_method_return_type()
2706 bool is_complex_type = ZEND_TYPE_IS_COMPLEX(fptr->common.arg_info[-1].type); in zend_check_magic_method_return_type()
2707 uint32_t extra_types = ZEND_TYPE_PURE_MASK(fptr->common.arg_info[-1].type) & ~return_type; in zend_check_magic_method_return_type()
2715 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name), in zend_check_magic_method_return_type()
2721 const zend_class_entry *ce, const zend_function *fptr, int error_type) in zend_check_magic_method_non_static() argument
2723 if (fptr->common.fn_flags & ZEND_ACC_STATIC) { in zend_check_magic_method_non_static()
2725 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name)); in zend_check_magic_method_non_static()
2730 const zend_class_entry *ce, const zend_function *fptr, int error_type) in zend_check_magic_method_static() argument
2732 if (!(fptr->common.fn_flags & ZEND_ACC_STATIC)) { in zend_check_magic_method_static()
2734 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name)); in zend_check_magic_method_static()
2739 const zend_class_entry *ce, const zend_function *fptr, int error_type) in zend_check_magic_method_public() argument
2742 if (!(fptr->common.fn_flags & ZEND_ACC_PUBLIC)) { in zend_check_magic_method_public()
2744 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name)); in zend_check_magic_method_public()
2749 const zend_class_entry *ce, const zend_function *fptr, int error_type) in zend_check_magic_method_no_return_type() argument
2751 if (fptr->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE) { in zend_check_magic_method_no_return_type()
2753 ZSTR_VAL(ce->name), ZSTR_VAL(fptr->common.function_name)); in zend_check_magic_method_no_return_type()
2757 …ic_method_implementation(const zend_class_entry *ce, const zend_function *fptr, zend_string *lcnam… in zend_check_magic_method_implementation() argument
2765 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2766 zend_check_magic_method_no_return_type(ce, fptr, error_type); in zend_check_magic_method_implementation()
2768 zend_check_magic_method_args(0, ce, fptr, error_type); in zend_check_magic_method_implementation()
2769 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2770 zend_check_magic_method_no_return_type(ce, fptr, error_type); in zend_check_magic_method_implementation()
2772 zend_check_magic_method_args(0, ce, fptr, error_type); in zend_check_magic_method_implementation()
2773 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2774 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_VOID); in zend_check_magic_method_implementation()
2776 zend_check_magic_method_args(1, ce, fptr, error_type); in zend_check_magic_method_implementation()
2777 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2778 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2779 zend_check_magic_method_arg_type(0, ce, fptr, error_type, MAY_BE_STRING); in zend_check_magic_method_implementation()
2781 zend_check_magic_method_args(2, ce, fptr, error_type); in zend_check_magic_method_implementation()
2782 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2783 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2784 zend_check_magic_method_arg_type(0, ce, fptr, error_type, MAY_BE_STRING); in zend_check_magic_method_implementation()
2785 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_VOID); in zend_check_magic_method_implementation()
2787 zend_check_magic_method_args(1, ce, fptr, error_type); in zend_check_magic_method_implementation()
2788 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2789 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2790 zend_check_magic_method_arg_type(0, ce, fptr, error_type, MAY_BE_STRING); in zend_check_magic_method_implementation()
2791 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_VOID); in zend_check_magic_method_implementation()
2793 zend_check_magic_method_args(1, ce, fptr, error_type); in zend_check_magic_method_implementation()
2794 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2795 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2796 zend_check_magic_method_arg_type(0, ce, fptr, error_type, MAY_BE_STRING); in zend_check_magic_method_implementation()
2797 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_BOOL); in zend_check_magic_method_implementation()
2799 zend_check_magic_method_args(2, ce, fptr, error_type); in zend_check_magic_method_implementation()
2800 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2801 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2802 zend_check_magic_method_arg_type(0, ce, fptr, error_type, MAY_BE_STRING); in zend_check_magic_method_implementation()
2803 zend_check_magic_method_arg_type(1, ce, fptr, error_type, MAY_BE_ARRAY); in zend_check_magic_method_implementation()
2805 zend_check_magic_method_args(2, ce, fptr, error_type); in zend_check_magic_method_implementation()
2806 zend_check_magic_method_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2807 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2808 zend_check_magic_method_arg_type(0, ce, fptr, error_type, MAY_BE_STRING); in zend_check_magic_method_implementation()
2809 zend_check_magic_method_arg_type(1, ce, fptr, error_type, MAY_BE_ARRAY); in zend_check_magic_method_implementation()
2811 zend_check_magic_method_args(0, ce, fptr, error_type); in zend_check_magic_method_implementation()
2812 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2813 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2814 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_STRING); in zend_check_magic_method_implementation()
2816 zend_check_magic_method_args(0, ce, fptr, error_type); in zend_check_magic_method_implementation()
2817 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2818 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2819 zend_check_magic_method_return_type(ce, fptr, error_type, (MAY_BE_ARRAY | MAY_BE_NULL)); in zend_check_magic_method_implementation()
2821 zend_check_magic_method_args(0, ce, fptr, error_type); in zend_check_magic_method_implementation()
2822 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2823 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2824 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_ARRAY); in zend_check_magic_method_implementation()
2826 zend_check_magic_method_args(1, ce, fptr, error_type); in zend_check_magic_method_implementation()
2827 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2828 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2829 zend_check_magic_method_arg_type(0, ce, fptr, error_type, MAY_BE_ARRAY); in zend_check_magic_method_implementation()
2830 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_VOID); in zend_check_magic_method_implementation()
2832 zend_check_magic_method_args(1, ce, fptr, error_type); in zend_check_magic_method_implementation()
2833 zend_check_magic_method_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2834 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2835 zend_check_magic_method_arg_type(0, ce, fptr, error_type, MAY_BE_ARRAY); in zend_check_magic_method_implementation()
2836 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_OBJECT); in zend_check_magic_method_implementation()
2838 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2839 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2841 zend_check_magic_method_args(0, ce, fptr, error_type); in zend_check_magic_method_implementation()
2842 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2843 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2844 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_ARRAY); in zend_check_magic_method_implementation()
2846 zend_check_magic_method_args(0, ce, fptr, error_type); in zend_check_magic_method_implementation()
2847 zend_check_magic_method_non_static(ce, fptr, error_type); in zend_check_magic_method_implementation()
2848 zend_check_magic_method_public(ce, fptr, error_type); in zend_check_magic_method_implementation()
2849 zend_check_magic_method_return_type(ce, fptr, error_type, MAY_BE_VOID); in zend_check_magic_method_implementation()
2854 ZEND_API void zend_add_magic_method(zend_class_entry *ce, zend_function *fptr, zend_string *lcname) in zend_add_magic_method() argument
2859 ce->clone = fptr; in zend_add_magic_method()
2861 ce->constructor = fptr; in zend_add_magic_method()
2864 ce->destructor = fptr; in zend_add_magic_method()
2866 ce->__get = fptr; in zend_add_magic_method()
2869 ce->__set = fptr; in zend_add_magic_method()
2872 ce->__call = fptr; in zend_add_magic_method()
2874 ce->__unset = fptr; in zend_add_magic_method()
2877 ce->__isset = fptr; in zend_add_magic_method()
2880 ce->__callstatic = fptr; in zend_add_magic_method()
2882 ce->__tostring = fptr; in zend_add_magic_method()
2884 ce->__debugInfo = fptr; in zend_add_magic_method()
2887 ce->__serialize = fptr; in zend_add_magic_method()
2889 ce->__unserialize = fptr; in zend_add_magic_method()