diff --git a/HttpServer/Events/OnRequest.php b/HttpServer/Events/OnRequest.php index af2eec2e..be0d4ad2 100644 --- a/HttpServer/Events/OnRequest.php +++ b/HttpServer/Events/OnRequest.php @@ -36,6 +36,9 @@ class OnRequest extends Callback public function onHandler(Request $request, Response $response) { try { + if (function_exists('trackerHookMalloc')) { + trackerHookMalloc(); + } register_shutdown_function(OnRequest::class . '::shutdown', $response); /** @var HRequest $sRequest */