diff options
Diffstat (limited to 'redis.c')
-rw-r--r-- | redis.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -978,6 +978,10 @@ redis_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) port = 6379; } + if (port < 0) { + port = 0; + } + redis = PHPREDIS_GET_OBJECT(redis_object, object); /* if there is a redis sock already we have to remove it */ if (redis->sock) { |