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;