Lines Matching refs:mptr
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()
456 zend_function *mptr; in _class_string() local
458 ZEND_HASH_MAP_FOREACH_PTR(&ce->function_table, mptr) { in _class_string()
459 if ((mptr->common.fn_flags & ZEND_ACC_STATIC) in _class_string()
460 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce)) in _class_string()
463 _function_string(str, mptr, ce, ZSTR_VAL(sub_indent)); in _class_string()
512 zend_function *mptr; in _class_string() local
516 ZEND_HASH_MAP_FOREACH_PTR(&ce->function_table, mptr) { in _class_string()
517 if ((mptr->common.fn_flags & ZEND_ACC_STATIC) == 0 in _class_string()
518 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce)) in _class_string()
522 if (obj && is_closure_invoke(ce, mptr->common.function_name) in _class_string()
525 mptr = closure; in _class_string()
530 _function_string(&method_str, mptr, ce, ZSTR_VAL(sub_indent)); in _class_string()
1304 zend_function *mptr; in _function_check_flag() local
1309 GET_REFLECTION_OBJECT_PTR(mptr); in _function_check_flag()
1310 RETURN_BOOL(mptr->common.fn_flags & mask); in _function_check_flag()
3282 zend_function *mptr; in instantiate_reflection_method() local
3358 && (mptr = zend_get_closure_invoke_method(orig_obj)) != NULL) in instantiate_reflection_method()
3361 } else if ((mptr = zend_hash_str_find_ptr(&ce->function_table, lcname, method_name_len)) == NULL) { in instantiate_reflection_method()
3369 ZVAL_STR_COPY(reflection_prop_name(object), mptr->common.function_name); in instantiate_reflection_method()
3370 ZVAL_STR_COPY(reflection_prop_class(object), mptr->common.scope->name); in instantiate_reflection_method()
3371 intern->ptr = mptr; in instantiate_reflection_method()
3390 zend_function *mptr; in ZEND_METHOD() local
3396 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3397 _function_string(&str, mptr, intern->ce, ""); in ZEND_METHOD()
3407 zend_function *mptr; in ZEND_METHOD() local
3413 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3415 if (mptr->common.fn_flags & ZEND_ACC_STATIC) { in ZEND_METHOD()
3416 zend_create_fake_closure(return_value, mptr, mptr->common.scope, mptr->common.scope, NULL); in ZEND_METHOD()
3423 if (!instanceof_function(Z_OBJCE_P(obj), mptr->common.scope)) { in ZEND_METHOD()
3430 (mptr->internal_function.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) in ZEND_METHOD()
3434 zend_create_fake_closure(return_value, mptr, mptr->common.scope, Z_OBJCE_P(obj), obj); in ZEND_METHOD()
3447 zend_function *mptr, *callback; in reflection_method_invoke() local
3451 GET_REFLECTION_OBJECT_PTR(mptr); in reflection_method_invoke()
3453 if (mptr->common.fn_flags & ZEND_ACC_ABSTRACT) { in reflection_method_invoke()
3456 ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.function_name)); in reflection_method_invoke()
3477 if (mptr->common.fn_flags & ZEND_ACC_STATIC) { in reflection_method_invoke()
3479 obj_ce = mptr->common.scope; in reflection_method_invoke()
3484 ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.function_name)); in reflection_method_invoke()
3490 if (!instanceof_function(obj_ce, mptr->common.scope)) { in reflection_method_invoke()
3499 callback = _copy_function(mptr); in reflection_method_invoke()
3504 …"Invocation of method %s::%s() failed", ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.… in reflection_method_invoke()
3739 zend_function *mptr; in ZEND_METHOD() local
3744 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3748 …RETURN_BOOL((mptr->common.fn_flags & ZEND_ACC_CTOR) && intern->ce->constructor && intern->ce->cons… in ZEND_METHOD()
3756 zend_function *mptr; in ZEND_METHOD() local
3761 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3763 mptr->common.function_name, ZEND_DESTRUCTOR_FUNC_NAME)); in ZEND_METHOD()
3771 zend_function *mptr; in ZEND_METHOD() local
3778 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3780 RETURN_LONG((mptr->common.fn_flags & keep_flags)); in ZEND_METHOD()
3788 zend_function *mptr; in ZEND_METHOD() local
3794 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3796 zend_reflection_class_factory(mptr->common.scope, return_value); in ZEND_METHOD()
3804 zend_function *mptr; in ZEND_METHOD() local
3810 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3811 RETURN_BOOL(mptr->common.prototype != NULL); in ZEND_METHOD()
3819 zend_function *mptr; in ZEND_METHOD() local
3825 GET_REFLECTION_OBJECT_PTR(mptr); in ZEND_METHOD()
3827 if (!mptr->common.prototype) { in ZEND_METHOD()
3829 …"Method %s::%s does not have a prototype", ZSTR_VAL(intern->ce->name), ZSTR_VAL(mptr->common.funct… in ZEND_METHOD()
3833 …reflection_method_factory(mptr->common.prototype->common.scope, mptr->common.prototype, NULL, retu… in ZEND_METHOD()
4566 zend_function *mptr; in ZEND_METHOD() local
4577 && (mptr = zend_get_closure_invoke_method(Z_OBJ(intern->obj))) != NULL) in ZEND_METHOD()
4581 reflection_method_factory(ce, mptr, NULL, return_value); in ZEND_METHOD()
4583 …&& object_init_ex(&obj_tmp, ce) == SUCCESS && (mptr = zend_get_closure_invoke_method(Z_OBJ(obj_tmp… in ZEND_METHOD()
4586 reflection_method_factory(ce, mptr, NULL, return_value); in ZEND_METHOD()
4588 } else if ((mptr = zend_hash_find_ptr(&ce->function_table, lc_name)) != NULL) { in ZEND_METHOD()
4589 reflection_method_factory(ce, mptr, NULL, return_value); in ZEND_METHOD()
4599 static bool _addmethod(zend_function *mptr, zend_class_entry *ce, HashTable *ht, zend_long filter) in _addmethod() argument
4601 if ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) && mptr->common.scope != ce) { in _addmethod()
4605 if (mptr->common.fn_flags & filter) { in _addmethod()
4607 reflection_method_factory(ce, mptr, NULL, &method); in _addmethod()
4620 zend_function *mptr; in ZEND_METHOD() local
4635 ZEND_HASH_MAP_FOREACH_PTR(&ce->function_table, mptr) { in ZEND_METHOD()
4636 _addmethod(mptr, ce, Z_ARRVAL_P(return_value), filter); in ZEND_METHOD()