snc/SncRedisBundle — pull request #147 by snc (2014-08-10 09:01:28+00:00)
Title: IPv6 support

Can you add this feature to bundle?
I made this changes to RedisDsn class in method parseDsn:

if (preg_match('#^([^:]+)(:(\d+))?$#', $dsn, $matches)) { //IPv4
if (!empty($matches[1])) {
// parse host/ip or socket
if ('/' === $matches[1]{0}) {
$this->socket = $matches[1];
} else {
$this->host = $matches[1];
}
}
if (null === $this->socket && !empty($matches[3])) {
// parse port
$this->port = (int) $matches[3];
}
} elseif (preg_match('#^([^.]+)(.(\d+))?$#', $dsn, $matches)) { //IPv6
if (!empty($matches[1])) {
// parse host/ip or socket
if ('/' === $matches[1]{0}) {
$this->socket = $matches[1];
} else {
$this->host = $matches[1];
}
}
if (null === $this->socket && !empty($matches[3])) {
// parse port
$this->port = (int) $matches[3];
}
}

If this is correct, add it to your repository plz