X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fcontext.c;h=d4510ebc579d1af794c4bd89b8c563c4b373d935;hp=f10f4c49e76e288c38c3c1384c99939231750a33;hb=f15288e185e65bcdfde87c217fb6bd7ff12eb653;hpb=e11280a7b6ed67a4d79b14569ca06131ea2338bd diff --git a/src/context.c b/src/context.c index f10f4c4..d4510eb 100644 --- a/src/context.c +++ b/src/context.c @@ -373,7 +373,22 @@ ZEND_RESULT_CODE psi_context_call(struct psi_context *C, zend_execute_data *exec return FAILURE; } + if (SUCCESS != psi_call_frame_do_assert(frame, PSI_ASSERT_PRE)) { + psi_call_frame_do_return(frame, return_value); + psi_call_frame_free(frame); + + return FAILURE; + } + psi_call_frame_do_call(frame); + + if (SUCCESS != psi_call_frame_do_assert(frame, PSI_ASSERT_POST)) { + psi_call_frame_do_return(frame, return_value); + psi_call_frame_free(frame); + + return FAILURE; + } + psi_call_frame_do_return(frame, return_value); psi_call_frame_do_set(frame); psi_call_frame_do_free(frame);