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()
370 zend_free_trampoline(mptr); in zend_create_closure_from_callable()
371 mptr = (zend_function *) &call; in zend_create_closure_from_callable()
376 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, &instance); in zend_create_closure_from_callable()
378 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, NULL); in zend_create_closure_from_callable()
381 if (&mptr->internal_function == &call) { in zend_create_closure_from_callable()
382 zend_string_release(mptr->common.function_name); in zend_create_closure_from_callable()
858 zend_function *mptr = call->func; in zend_closure_from_frame() local
861 RETURN_OBJ(ZEND_CLOSURE_OBJECT(mptr)); in zend_closure_from_frame()
864 if (mptr->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) { in zend_closure_from_frame()
867 && zend_string_equals(mptr->common.function_name, ZSTR_KNOWN(ZEND_STR_MAGIC_INVOKE))) { in zend_closure_from_frame()
868 zend_free_trampoline(mptr); in zend_closure_from_frame()
874 …trampoline.fn_flags = mptr->common.fn_flags & (ZEND_ACC_STATIC | ZEND_ACC_VARIADIC | ZEND_ACC_RETU… in zend_closure_from_frame()
876 trampoline.function_name = mptr->common.function_name; in zend_closure_from_frame()
877 trampoline.scope = mptr->common.scope; in zend_closure_from_frame()
883 zend_free_trampoline(mptr); in zend_closure_from_frame()
884 mptr = (zend_function *) &trampoline; in zend_closure_from_frame()
890 zend_create_fake_closure(return_value, mptr, mptr->common.scope, Z_OBJCE(instance), &instance); in zend_closure_from_frame()
892 zend_create_fake_closure(return_value, mptr, mptr->common.scope, Z_CE(call->This), NULL); in zend_closure_from_frame()
895 if (&mptr->internal_function == &trampoline) { in zend_closure_from_frame()
896 zend_string_release(mptr->common.function_name); in zend_closure_from_frame()