Lines Matching refs:mptr

428 		zend_function *mptr;  in _class_string()  local
430 ZEND_HASH_MAP_FOREACH_PTR(&ce->function_table, mptr) { in _class_string()
431 if ((mptr->common.fn_flags & ZEND_ACC_STATIC) in _class_string()
432 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce)) in _class_string()
442 zend_function *mptr; in _class_string() local
444 ZEND_HASH_MAP_FOREACH_PTR(&ce->function_table, mptr) { in _class_string()
445 if ((mptr->common.fn_flags & ZEND_ACC_STATIC) in _class_string()
446 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce)) in _class_string()
449 _function_string(str, mptr, ce, ZSTR_VAL(sub_indent)); in _class_string()
498 zend_function *mptr; in _class_string() local
502 ZEND_HASH_MAP_FOREACH_PTR(&ce->function_table, mptr) { in _class_string()
503 if ((mptr->common.fn_flags & ZEND_ACC_STATIC) == 0 in _class_string()
504 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce)) in _class_string()
508 if (obj && is_closure_invoke(ce, mptr->common.function_name) in _class_string()
511 mptr = closure; in _class_string()
516 _function_string(&method_str, mptr, ce, ZSTR_VAL(sub_indent)); in _class_string()
1247 zend_function *mptr; in _function_check_flag() local
1252 GET_REFLECTION_OBJECT_PTR(mptr); in _function_check_flag()
1253 RETURN_BOOL(mptr->common.fn_flags & mask); in _function_check_flag()
3204 zend_function *mptr; in instantiate_reflection_method() local
3272 && (mptr = zend_get_closure_invoke_method(orig_obj)) != NULL) in instantiate_reflection_method()
3275 } else if ((mptr = zend_hash_str_find_ptr(&ce->function_table, lcname, method_name_len)) == NULL) { in instantiate_reflection_method()
3283 ZVAL_STR_COPY(reflection_prop_name(object), mptr->common.function_name); in instantiate_reflection_method()
3284 ZVAL_STR_COPY(reflection_prop_class(object), mptr->common.scope->name); in instantiate_reflection_method()
3285 intern->ptr = mptr; in instantiate_reflection_method()
3304 zend_function *mptr; in ZEND_METHOD() local
3310 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3311 _function_string(&str, mptr, intern->ce, ""); in ZEND_METHOD()
3321 zend_function *mptr; in ZEND_METHOD() local
3327 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3329 if (mptr->common.fn_flags & ZEND_ACC_STATIC) { in ZEND_METHOD()
3330 zend_create_fake_closure(return_value, mptr, mptr->common.scope, mptr->common.scope, NULL); in ZEND_METHOD()
3337 if (!instanceof_function(Z_OBJCE_P(obj), mptr->common.scope)) { in ZEND_METHOD()
3344 (mptr->internal_function.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) in ZEND_METHOD()
3348 zend_create_fake_closure(return_value, mptr, mptr->common.scope, Z_OBJCE_P(obj), obj); in ZEND_METHOD()
3361 zend_function *mptr, *callback; in reflection_method_invoke() local
3365 GET_REFLECTION_OBJECT_PTR(mptr); in reflection_method_invoke()
3367 if (mptr->common.fn_flags & ZEND_ACC_ABSTRACT) { in reflection_method_invoke()
3370 ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.function_name)); in reflection_method_invoke()
3391 if (mptr->common.fn_flags & ZEND_ACC_STATIC) { in reflection_method_invoke()
3393 obj_ce = mptr->common.scope; in reflection_method_invoke()
3398 ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.function_name)); in reflection_method_invoke()
3404 if (!instanceof_function(obj_ce, mptr->common.scope)) { in reflection_method_invoke()
3413 callback = _copy_function(mptr); in reflection_method_invoke()
3418 …"Invocation of method %s::%s() failed", ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.… in reflection_method_invoke()
3642 zend_function *mptr; in ZEND_METHOD() local
3647 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3651 …RETURN_BOOL((mptr->common.fn_flags & ZEND_ACC_CTOR) && intern->ce->constructor && intern->ce->cons… in ZEND_METHOD()
3659 zend_function *mptr; in ZEND_METHOD() local
3664 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3666 mptr->common.function_name, ZEND_DESTRUCTOR_FUNC_NAME)); in ZEND_METHOD()
3674 zend_function *mptr; in ZEND_METHOD() local
3681 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3683 RETURN_LONG((mptr->common.fn_flags & keep_flags)); in ZEND_METHOD()
3691 zend_function *mptr; in ZEND_METHOD() local
3697 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3699 zend_reflection_class_factory(mptr->common.scope, return_value); in ZEND_METHOD()
3707 zend_function *mptr; in ZEND_METHOD() local
3713 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3714 RETURN_BOOL(mptr->common.prototype != NULL); in ZEND_METHOD()
3722 zend_function *mptr; in ZEND_METHOD() local
3728 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3730 if (!mptr->common.prototype) { in ZEND_METHOD()
3732 …"Method %s::%s does not have a prototype", ZSTR_VAL(intern->ce->name), ZSTR_VAL(mptr->common.funct… in ZEND_METHOD()
3736 …reflection_method_factory(mptr->common.prototype->common.scope, mptr->common.prototype, NULL, retu… in ZEND_METHOD()
4453 zend_function *mptr; in ZEND_METHOD() local
4464 && (mptr = zend_get_closure_invoke_method(Z_OBJ(intern->obj))) != NULL) in ZEND_METHOD()
4468 reflection_method_factory(ce, mptr, NULL, return_value); in ZEND_METHOD()
4470 …&& object_init_ex(&obj_tmp, ce) == SUCCESS && (mptr = zend_get_closure_invoke_method(Z_OBJ(obj_tmp… in ZEND_METHOD()
4473 reflection_method_factory(ce, mptr, NULL, return_value); in ZEND_METHOD()
4475 } else if ((mptr = zend_hash_find_ptr(&ce->function_table, lc_name)) != NULL) { in ZEND_METHOD()
4476 reflection_method_factory(ce, mptr, NULL, return_value); in ZEND_METHOD()
4486 static bool _addmethod(zend_function *mptr, zend_class_entry *ce, HashTable *ht, zend_long filter) in _addmethod() argument
4488 if ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) && mptr->common.scope != ce) { in _addmethod()
4492 if (mptr->common.fn_flags & filter) { in _addmethod()
4494 reflection_method_factory(ce, mptr, NULL, &method); in _addmethod()
4507 zend_function *mptr; in ZEND_METHOD() local
4522 ZEND_HASH_MAP_FOREACH_PTR(&ce->function_table, mptr) { in ZEND_METHOD()
4523 _addmethod(mptr, ce, Z_ARRVAL_P(return_value), filter); in ZEND_METHOD()