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 85e4746 commit da074ddCopy full SHA for da074dd
library.c
@@ -777,7 +777,9 @@ PHPAPI int redis_sock_disconnect(RedisSock *redis_sock TSRMLS_DC)
777
redis_sock_write(redis_sock, "QUIT", sizeof("QUIT") - 1 TSRMLS_CC);
778
779
redis_sock->status = REDIS_SOCK_STATUS_DISCONNECTED;
780
- php_stream_close(redis_sock->stream);
+ if(redis_sock->stream) { /* still valid after the write? */
781
+ php_stream_close(redis_sock->stream);
782
+ }
783
redis_sock->stream = NULL;
784
785
res = 1;
0 commit comments