We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0036a73 commit d701d02Copy full SHA for d701d02
library.c
@@ -1489,13 +1489,9 @@ PHP_REDIS_API int redis_sock_disconnect(RedisSock *redis_sock TSRMLS_DC)
1489
1490
redis_sock->dbNumber = 0;
1491
if (redis_sock->stream != NULL) {
1492
- if (!redis_sock->persistent) {
1493
- redis_sock_write(redis_sock, "QUIT" _NL, sizeof("QUIT" _NL) - 1 TSRMLS_CC);
1494
- }
1495
-
1496
redis_sock->status = REDIS_SOCK_STATUS_DISCONNECTED;
1497
redis_sock->watching = 0;
1498
- if(redis_sock->stream && !redis_sock->persistent) { /* still valid after the write? */
+ if(!redis_sock->persistent) {
1499
php_stream_close(redis_sock->stream);
1500
}
1501
redis_sock->stream = NULL;
0 commit comments