Skip to content

Commit 0672703

Browse files
committed
Fix cluster nodes from ENV
1 parent eda3995 commit 0672703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/RedisClusterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function testSession_lockWaitTime() { return $this->markTestSkipped(); }
7373
public function __construct($str_host, $i_port, $str_auth) {
7474
parent::__construct($str_host, $i_port, $str_auth);
7575

76-
self::$_arr_node_map = preg_split('/\s+/', getenv('REDIS_CLUSTER_NODES'));
76+
self::$_arr_node_map = array_filter(explode(' ', getenv('REDIS_CLUSTER_NODES')));
7777
/* Store our node map */
7878
if (!self::$_arr_node_map) {
7979
$str_nodemap_file = dirname($_SERVER['PHP_SELF']) . '/nodes/nodemap';

0 commit comments

Comments
 (0)