diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2015-04-08 13:29:42 +0300 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2015-04-08 13:29:42 +0300 |
| commit | 4d9a1883aa764e502990488d2e8b9c978be6fbd2 (patch) | |
| tree | 1058bb04ebf8266a316c6449132e7cda7d0ce54b /ext/sockets/sockets.c | |
| parent | fa795b05530c4ccd33ff63f23903bf4b458dc491 (diff) | |
| download | php-git-4d9a1883aa764e502990488d2e8b9c978be6fbd2.tar.gz | |
Fixed bug #68887 (resources are not freed correctly)
Diffstat (limited to 'ext/sockets/sockets.c')
| -rw-r--r-- | ext/sockets/sockets.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index 45f7c25096..19e1c76d38 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -1079,7 +1079,8 @@ PHP_FUNCTION(socket_close) if (stream != NULL) { /* close & destroy stream, incl. removing it from the rsrc list; * resource stored in php_sock->zstream will become invalid */ - php_stream_free(stream, PHP_STREAM_FREE_CLOSE | + php_stream_free(stream, + PHP_STREAM_FREE_KEEP_RSRC | PHP_STREAM_FREE_CLOSE | (stream->is_persistent?PHP_STREAM_FREE_CLOSE_PERSISTENT:0)); } } |
