diff --git a/Cm/Cache/Backend/Redis.php b/Cm/Cache/Backend/Redis.php index 886e075..1505f94 100644 --- a/Cm/Cache/Backend/Redis.php +++ b/Cm/Cache/Backend/Redis.php @@ -172,7 +172,7 @@ public function __construct($options = array()) $sentinelClientOptions = isset($options['sentinel']) && is_array($options['sentinel']) ? $this->getClientOptions($options['sentinel'] + $options) : $this->_clientOptions; - $servers = preg_split('/\s*,\s*/', trim($options['server']), NULL, PREG_SPLIT_NO_EMPTY); + $servers = preg_split('/\s*,\s*/', trim($options['server']), -1, PREG_SPLIT_NO_EMPTY); $sentinel = NULL; $exception = NULL; for ($i = 0; $i <= $sentinelClientOptions->connectRetries; $i++) // Try each sentinel in round-robin fashion @@ -210,7 +210,7 @@ public function __construct($options = array()) $this->_redis = $redisMaster; break 2; - } catch (Exception $e) { + } catch (\Exception $e) { unset($sentinelClient); $exception = $e; }