Lines Matching refs:mptr

435 		zend_function *mptr;  in _class_string()  local
437 ZEND_HASH_MAP_FOREACH_PTR(&ce->function_table, mptr) { in _class_string()
438 if ((mptr->common.fn_flags & ZEND_ACC_STATIC) in _class_string()
439 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce)) in _class_string()
449 zend_function *mptr; in _class_string() local
451 ZEND_HASH_MAP_FOREACH_PTR(&ce->function_table, mptr) { in _class_string()
452 if ((mptr->common.fn_flags & ZEND_ACC_STATIC) in _class_string()
453 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce)) in _class_string()
456 _function_string(str, mptr, ce, ZSTR_VAL(sub_indent)); in _class_string()
505 zend_function *mptr; in _class_string() local
509 ZEND_HASH_MAP_FOREACH_PTR(&ce->function_table, mptr) { in _class_string()
510 if ((mptr->common.fn_flags & ZEND_ACC_STATIC) == 0 in _class_string()
511 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce)) in _class_string()
515 if (obj && is_closure_invoke(ce, mptr->common.function_name) in _class_string()
518 mptr = closure; in _class_string()
523 _function_string(&method_str, mptr, ce, ZSTR_VAL(sub_indent)); in _class_string()
1297 zend_function *mptr; in _function_check_flag() local
1300 GET_REFLECTION_OBJECT_PTR(mptr); in _function_check_flag()
1301 RETURN_BOOL(mptr->common.fn_flags & mask); in _function_check_flag()
3173 zend_function *mptr; in instantiate_reflection_method() local
3249 && (mptr = zend_get_closure_invoke_method(orig_obj)) != NULL) in instantiate_reflection_method()
3252 } else if ((mptr = zend_hash_str_find_ptr(&ce->function_table, lcname, method_name_len)) == NULL) { in instantiate_reflection_method()
3260 ZVAL_STR_COPY(reflection_prop_name(object), mptr->common.function_name); in instantiate_reflection_method()
3261 ZVAL_STR_COPY(reflection_prop_class(object), mptr->common.scope->name); in instantiate_reflection_method()
3262 intern->ptr = mptr; in instantiate_reflection_method()
3281 zend_function *mptr; in ZEND_METHOD() local
3285 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3286 _function_string(&str, mptr, intern->ce, ""); in ZEND_METHOD()
3296 zend_function *mptr; in ZEND_METHOD() local
3302 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3304 if (mptr->common.fn_flags & ZEND_ACC_STATIC) { in ZEND_METHOD()
3305 zend_create_fake_closure(return_value, mptr, mptr->common.scope, mptr->common.scope, NULL); in ZEND_METHOD()
3312 if (!instanceof_function(Z_OBJCE_P(obj), mptr->common.scope)) { in ZEND_METHOD()
3319 (mptr->internal_function.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) in ZEND_METHOD()
3323 zend_create_fake_closure(return_value, mptr, mptr->common.scope, Z_OBJCE_P(obj), obj); in ZEND_METHOD()
3336 zend_function *mptr, *callback; in reflection_method_invoke() local
3340 GET_REFLECTION_OBJECT_PTR(mptr); in reflection_method_invoke()
3342 if (mptr->common.fn_flags & ZEND_ACC_ABSTRACT) { in reflection_method_invoke()
3345 ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.function_name)); in reflection_method_invoke()
3366 if (mptr->common.fn_flags & ZEND_ACC_STATIC) { in reflection_method_invoke()
3368 obj_ce = mptr->common.scope; in reflection_method_invoke()
3373 ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.function_name)); in reflection_method_invoke()
3379 if (!instanceof_function(obj_ce, mptr->common.scope)) { in reflection_method_invoke()
3388 callback = _copy_function(mptr); in reflection_method_invoke()
3393 …"Invocation of method %s::%s() failed", ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.… in reflection_method_invoke()
3614 zend_function *mptr; in ZEND_METHOD() local
3617 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3621 …RETURN_BOOL((mptr->common.fn_flags & ZEND_ACC_CTOR) && intern->ce->constructor && intern->ce->cons… in ZEND_METHOD()
3629 zend_function *mptr; in ZEND_METHOD() local
3632 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3634 mptr->common.function_name, ZEND_DESTRUCTOR_FUNC_NAME)); in ZEND_METHOD()
3642 zend_function *mptr; in ZEND_METHOD() local
3647 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3649 RETURN_LONG((mptr->common.fn_flags & keep_flags)); in ZEND_METHOD()
3657 zend_function *mptr; in ZEND_METHOD() local
3661 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3663 zend_reflection_class_factory(mptr->common.scope, return_value); in ZEND_METHOD()
3671 zend_function *mptr; in ZEND_METHOD() local
3675 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3676 RETURN_BOOL(mptr->common.prototype != NULL); in ZEND_METHOD()
3684 zend_function *mptr; in ZEND_METHOD() local
3688 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3690 if (!mptr->common.prototype) { in ZEND_METHOD()
3692 …"Method %s::%s does not have a prototype", ZSTR_VAL(intern->ce->name), ZSTR_VAL(mptr->common.funct… in ZEND_METHOD()
3696 …reflection_method_factory(mptr->common.prototype->common.scope, mptr->common.prototype, NULL, retu… in ZEND_METHOD()
4386 zend_function *mptr; in ZEND_METHOD() local
4397 && (mptr = zend_get_closure_invoke_method(Z_OBJ(intern->obj))) != NULL) in ZEND_METHOD()
4401 reflection_method_factory(ce, mptr, NULL, return_value); in ZEND_METHOD()
4403 …&& object_init_ex(&obj_tmp, ce) == SUCCESS && (mptr = zend_get_closure_invoke_method(Z_OBJ(obj_tmp… in ZEND_METHOD()
4406 reflection_method_factory(ce, mptr, NULL, return_value); in ZEND_METHOD()
4408 } else if ((mptr = zend_hash_find_ptr(&ce->function_table, lc_name)) != NULL) { in ZEND_METHOD()
4409 reflection_method_factory(ce, mptr, NULL, return_value); in ZEND_METHOD()
4419 static bool _addmethod(zend_function *mptr, zend_class_entry *ce, HashTable *ht, zend_long filter) in _addmethod() argument
4421 if ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) && mptr->common.scope != ce) { in _addmethod()
4425 if (mptr->common.fn_flags & filter) { in _addmethod()
4427 reflection_method_factory(ce, mptr, NULL, &method); in _addmethod()
4440 zend_function *mptr; in ZEND_METHOD() local
4455 ZEND_HASH_MAP_FOREACH_PTR(&ce->function_table, mptr) { in ZEND_METHOD()
4456 _addmethod(mptr, ce, Z_ARRVAL_P(return_value), filter); in ZEND_METHOD()