From a6f7cda63e19769bd82459acc4ba6b51c2f84296 Mon Sep 17 00:00:00 2001 From: walkor Date: Thu, 28 Apr 2022 11:21:05 +0800 Subject: [PATCH] gc_mem_caches --- src/Client.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index cf70802..a744160 100644 --- a/src/Client.php +++ b/src/Client.php @@ -394,7 +394,9 @@ public function connect() } if (empty($this->_queue)) { $this->_queue = []; - gc_mem_caches(); + if (function_exists('gc_mem_caches')) { + gc_mem_caches(); + } } $success = $type === '-' || $type === '!' ? false : true; $exception = false;