From 33c96852b9da47e52406acb2ac948daa886a148e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 15 Sep 2020 17:03:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Events/OnRequest.php | 3 +++ 1 file changed, 3 insertions(+) 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 */