We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e309b55 commit 1886721Copy full SHA for 1886721
system/Session/Handlers/RedisHandler.php
@@ -178,7 +178,9 @@ public function open($path, $name): bool
178
179
$redis = new Redis();
180
181
- $funcConnection = isset($this->savePath['persistent']) && $this->savePath['persistent'] ? 'pconnect' : 'connect';
+ $funcConnection = isset($this->savePath['persistent']) && $this->savePath['persistent'] === true
182
+ ? 'pconnect'
183
+ : 'connect';
184
185
if ($redis->{$funcConnection}($this->savePath['host'], $this->savePath['port'], $this->savePath['timeout']) === false) {
186
$this->logger->error('Session: Unable to connect to Redis with the configured settings.');
0 commit comments