Lines Matching refs:mptr

331 	zend_function *mptr;  in zend_create_closure_from_callable()  local
339 mptr = fcc.function_handler; in zend_create_closure_from_callable()
340 if (mptr->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) { in zend_create_closure_from_callable()
343 && zend_string_equals(mptr->common.function_name, ZSTR_KNOWN(ZEND_STR_MAGIC_INVOKE))) { in zend_create_closure_from_callable()
345 zend_free_trampoline(mptr); in zend_create_closure_from_callable()
349 if (!mptr->common.scope) { in zend_create_closure_from_callable()
352 if (mptr->common.fn_flags & ZEND_ACC_STATIC) { in zend_create_closure_from_callable()
353 if (!mptr->common.scope->__callstatic) { in zend_create_closure_from_callable()
357 if (!mptr->common.scope->__call) { in zend_create_closure_from_callable()
364 call.fn_flags = mptr->common.fn_flags & ZEND_ACC_STATIC; in zend_create_closure_from_callable()
366 call.function_name = mptr->common.function_name; in zend_create_closure_from_callable()
367 call.scope = mptr->common.scope; in zend_create_closure_from_callable()
369 zend_free_trampoline(mptr); in zend_create_closure_from_callable()
370 mptr = (zend_function *) &call; in zend_create_closure_from_callable()
375 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, &instance); in zend_create_closure_from_callable()
377 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, NULL); in zend_create_closure_from_callable()
380 if (&mptr->internal_function == &call) { in zend_create_closure_from_callable()
381 zend_string_release(mptr->common.function_name); in zend_create_closure_from_callable()
847 zend_function *mptr = call->func; in zend_closure_from_frame() local
850 RETURN_OBJ(ZEND_CLOSURE_OBJECT(mptr)); in zend_closure_from_frame()
853 if (mptr->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) { in zend_closure_from_frame()
856 && zend_string_equals(mptr->common.function_name, ZSTR_KNOWN(ZEND_STR_MAGIC_INVOKE))) { in zend_closure_from_frame()
857 zend_free_trampoline(mptr); in zend_closure_from_frame()
863 trampoline.fn_flags = mptr->common.fn_flags & (ZEND_ACC_STATIC | ZEND_ACC_VARIADIC); in zend_closure_from_frame()
865 trampoline.function_name = mptr->common.function_name; in zend_closure_from_frame()
866 trampoline.scope = mptr->common.scope; in zend_closure_from_frame()
871 zend_free_trampoline(mptr); in zend_closure_from_frame()
872 mptr = (zend_function *) &trampoline; in zend_closure_from_frame()
878 zend_create_fake_closure(return_value, mptr, mptr->common.scope, Z_OBJCE(instance), &instance); in zend_closure_from_frame()
880 zend_create_fake_closure(return_value, mptr, mptr->common.scope, Z_CE(call->This), NULL); in zend_closure_from_frame()
883 if (&mptr->internal_function == &trampoline) { in zend_closure_from_frame()
884 zend_string_release(mptr->common.function_name); in zend_closure_from_frame()