Lines Matching refs:mptr

298 	zend_function *mptr;  in zend_create_closure_from_callable()  local
306 mptr = fcc.function_handler; in zend_create_closure_from_callable()
307 if (mptr->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) { in zend_create_closure_from_callable()
310 && zend_string_equals_literal(mptr->common.function_name, "__invoke")) { in zend_create_closure_from_callable()
312 zend_free_trampoline(mptr); in zend_create_closure_from_callable()
316 if (!mptr->common.scope) { in zend_create_closure_from_callable()
319 if (mptr->common.fn_flags & ZEND_ACC_STATIC) { in zend_create_closure_from_callable()
320 if (!mptr->common.scope->__callstatic) { in zend_create_closure_from_callable()
324 if (!mptr->common.scope->__call) { in zend_create_closure_from_callable()
331 call.fn_flags = mptr->common.fn_flags & ZEND_ACC_STATIC; in zend_create_closure_from_callable()
333 call.function_name = mptr->common.function_name; in zend_create_closure_from_callable()
334 call.scope = mptr->common.scope; in zend_create_closure_from_callable()
336 zend_free_trampoline(mptr); in zend_create_closure_from_callable()
337 mptr = (zend_function *) &call; in zend_create_closure_from_callable()
342 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, &instance); in zend_create_closure_from_callable()
344 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, NULL); in zend_create_closure_from_callable()
347 if (&mptr->internal_function == &call) { in zend_create_closure_from_callable()
348 zend_string_release(mptr->common.function_name); in zend_create_closure_from_callable()
799 zend_function *mptr = call->func; in zend_closure_from_frame() local
802 RETURN_OBJ(ZEND_CLOSURE_OBJECT(mptr)); in zend_closure_from_frame()
805 if (mptr->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) { in zend_closure_from_frame()
808 && zend_string_equals_literal(mptr->common.function_name, "__invoke")) { in zend_closure_from_frame()
809 zend_free_trampoline(mptr); in zend_closure_from_frame()
815 trampoline.fn_flags = mptr->common.fn_flags & ZEND_ACC_STATIC; in zend_closure_from_frame()
817 trampoline.function_name = mptr->common.function_name; in zend_closure_from_frame()
818 trampoline.scope = mptr->common.scope; in zend_closure_from_frame()
820 zend_free_trampoline(mptr); in zend_closure_from_frame()
821 mptr = (zend_function *) &trampoline; in zend_closure_from_frame()
827 zend_create_fake_closure(return_value, mptr, mptr->common.scope, Z_OBJCE(instance), &instance); in zend_closure_from_frame()
829 zend_create_fake_closure(return_value, mptr, mptr->common.scope, Z_CE(call->This), NULL); in zend_closure_from_frame()
832 if (&mptr->internal_function == &trampoline) { in zend_closure_from_frame()
833 zend_string_release(mptr->common.function_name); in zend_closure_from_frame()