Lines Matching refs:mptr

431 		zend_function *mptr;  in _class_string()  local
433 ZEND_HASH_FOREACH_PTR(&ce->function_table, mptr) { in _class_string()
434 if ((mptr->common.fn_flags & ZEND_ACC_STATIC) in _class_string()
435 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce)) in _class_string()
445 zend_function *mptr; in _class_string() local
447 ZEND_HASH_FOREACH_PTR(&ce->function_table, mptr) { in _class_string()
448 if ((mptr->common.fn_flags & ZEND_ACC_STATIC) in _class_string()
449 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce)) in _class_string()
452 _function_string(str, mptr, ce, ZSTR_VAL(sub_indent)); in _class_string()
501 zend_function *mptr; in _class_string() local
505 ZEND_HASH_FOREACH_PTR(&ce->function_table, mptr) { in _class_string()
506 if ((mptr->common.fn_flags & ZEND_ACC_STATIC) == 0 in _class_string()
507 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce)) in _class_string()
511 if (obj && is_closure_invoke(ce, mptr->common.function_name) in _class_string()
514 mptr = closure; in _class_string()
519 _function_string(&method_str, mptr, ce, ZSTR_VAL(sub_indent)); in _class_string()
1230 zend_function *mptr; in _function_check_flag() local
1235 GET_REFLECTION_OBJECT_PTR(mptr); in _function_check_flag()
1236 RETURN_BOOL(mptr->common.fn_flags & mask); in _function_check_flag()
3042 zend_function *mptr; in ZEND_METHOD() local
3099 && (mptr = zend_get_closure_invoke_method(orig_obj)) != NULL) in ZEND_METHOD()
3102 } else if ((mptr = zend_hash_str_find_ptr(&ce->function_table, lcname, method_name_len)) == NULL) { in ZEND_METHOD()
3110 ZVAL_STR_COPY(reflection_prop_name(object), mptr->common.function_name); in ZEND_METHOD()
3111 ZVAL_STR_COPY(reflection_prop_class(object), mptr->common.scope->name); in ZEND_METHOD()
3112 intern->ptr = mptr; in ZEND_METHOD()
3122 zend_function *mptr; in ZEND_METHOD() local
3128 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3129 _function_string(&str, mptr, intern->ce, ""); in ZEND_METHOD()
3139 zend_function *mptr; in ZEND_METHOD() local
3145 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3147 if (mptr->common.fn_flags & ZEND_ACC_STATIC) { in ZEND_METHOD()
3148 zend_create_fake_closure(return_value, mptr, mptr->common.scope, mptr->common.scope, NULL); in ZEND_METHOD()
3155 if (!instanceof_function(Z_OBJCE_P(obj), mptr->common.scope)) { in ZEND_METHOD()
3162 (mptr->internal_function.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) in ZEND_METHOD()
3166 zend_create_fake_closure(return_value, mptr, mptr->common.scope, Z_OBJCE_P(obj), obj); in ZEND_METHOD()
3179 zend_function *mptr; in reflection_method_invoke() local
3185 GET_REFLECTION_OBJECT_PTR(mptr); in reflection_method_invoke()
3187 if (mptr->common.fn_flags & ZEND_ACC_ABSTRACT) { in reflection_method_invoke()
3190 ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.function_name)); in reflection_method_invoke()
3194 if (!(mptr->common.fn_flags & ZEND_ACC_PUBLIC) && intern->ignore_visibility == 0) { in reflection_method_invoke()
3197 mptr->common.fn_flags & ZEND_ACC_PROTECTED ? "protected" : "private", in reflection_method_invoke()
3198 ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.function_name), in reflection_method_invoke()
3220 if (mptr->common.fn_flags & ZEND_ACC_STATIC) { in reflection_method_invoke()
3222 obj_ce = mptr->common.scope; in reflection_method_invoke()
3227 ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.function_name)); in reflection_method_invoke()
3233 if (!instanceof_function(obj_ce, mptr->common.scope)) { in reflection_method_invoke()
3250 fcc.function_handler = mptr; in reflection_method_invoke()
3257 if ((mptr->internal_function.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) { in reflection_method_invoke()
3258 fcc.function_handler = _copy_function(mptr); in reflection_method_invoke()
3265 …"Invocation of method %s::%s() failed", ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.… in reflection_method_invoke()
3455 zend_function *mptr; in ZEND_METHOD() local
3460 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3464 …RETURN_BOOL((mptr->common.fn_flags & ZEND_ACC_CTOR) && intern->ce->constructor && intern->ce->cons… in ZEND_METHOD()
3472 zend_function *mptr; in ZEND_METHOD() local
3477 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3479 mptr->common.function_name, ZEND_DESTRUCTOR_FUNC_NAME)); in ZEND_METHOD()
3487 zend_function *mptr; in ZEND_METHOD() local
3494 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3496 RETURN_LONG((mptr->common.fn_flags & keep_flags)); in ZEND_METHOD()
3504 zend_function *mptr; in ZEND_METHOD() local
3506 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3512 zend_reflection_class_factory(mptr->common.scope, return_value); in ZEND_METHOD()
3520 zend_function *mptr; in ZEND_METHOD() local
3522 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3528 if (!mptr->common.prototype) { in ZEND_METHOD()
3530 …"Method %s::%s does not have a prototype", ZSTR_VAL(intern->ce->name), ZSTR_VAL(mptr->common.funct… in ZEND_METHOD()
3534 …reflection_method_factory(mptr->common.prototype->common.scope, mptr->common.prototype, NULL, retu… in ZEND_METHOD()
4179 zend_function *mptr; in ZEND_METHOD() local
4190 && (mptr = zend_get_closure_invoke_method(Z_OBJ(intern->obj))) != NULL) in ZEND_METHOD()
4194 reflection_method_factory(ce, mptr, NULL, return_value); in ZEND_METHOD()
4196 …&& object_init_ex(&obj_tmp, ce) == SUCCESS && (mptr = zend_get_closure_invoke_method(Z_OBJ(obj_tmp… in ZEND_METHOD()
4199 reflection_method_factory(ce, mptr, NULL, return_value); in ZEND_METHOD()
4201 } else if ((mptr = zend_hash_find_ptr(&ce->function_table, lc_name)) != NULL) { in ZEND_METHOD()
4202 reflection_method_factory(ce, mptr, NULL, return_value); in ZEND_METHOD()
4212 static zend_bool _addmethod(zend_function *mptr, zend_class_entry *ce, zval *retval, zend_long filt… in _addmethod() argument
4214 if ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) && mptr->common.scope != ce) { in _addmethod()
4218 if (mptr->common.fn_flags & filter) { in _addmethod()
4220 reflection_method_factory(ce, mptr, NULL, &method); in _addmethod()
4233 zend_function *mptr; in ZEND_METHOD() local
4248 ZEND_HASH_FOREACH_PTR(&ce->function_table, mptr) { in ZEND_METHOD()
4249 _addmethod(mptr, ce, return_value, filter); in ZEND_METHOD()