Skip to content

Commit 2a0ae4a

Browse files
committed
1 parent 0d002eb commit 2a0ae4a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

system/Session/Handlers/RedisHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ public function __construct(AppConfig $config, string $ipAddress)
7575

7676
$this->savePath = [
7777
'host' => $matches[1],
78-
'port' => empty($matches[2]) ? null : $matches[2],
78+
'port' => empty($matches[2]) ? 6379 : $matches[2],
7979
'password' => preg_match('#auth=([^\s&]+)#', $matches[3], $match) ? $match[1] : null,
80-
'database' => preg_match('#database=(\d+)#', $matches[3], $match) ? (int) $match[1] : null,
81-
'timeout' => preg_match('#timeout=(\d+\.\d+)#', $matches[3], $match) ? (float) $match[1] : null,
80+
'database' => preg_match('#database=(\d+)#', $matches[3], $match) ? (int) $match[1] : 0,
81+
'timeout' => preg_match('#timeout=(\d+\.\d+)#', $matches[3], $match) ? (float) $match[1] : 0,
8282
];
8383

8484
preg_match('#prefix=([^\s&]+)#', $matches[3], $match) && $this->keyPrefix = $match[1];

0 commit comments

Comments
 (0)