dmitry Thu Apr 26 12:53:34 2007 UTC Modified files: /php-src/ext/zlib zlib_fopen_wrapper.c Log: Prevent double close() of the same file handle http://cvs.php.net/viewvc.cgi/php-src/ext/zlib/zlib_fopen_wrapper.c?r1=1.48&r2=1.49&diff_format=u Index: php-src/ext/zlib/zlib_fopen_wrapper.c diff -u php-src/ext/zlib/zlib_fopen_wrapper.c:1.48 php-src/ext/zlib/zlib_fopen_wrapper.c:1.49 --- php-src/ext/zlib/zlib_fopen_wrapper.c:1.48 Mon Jan 1 09:29:35 2007 +++ php-src/ext/zlib/zlib_fopen_wrapper.c Thu Apr 26 12:53:34 2007 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zlib_fopen_wrapper.c,v 1.48 2007/01/01 09:29:35 sebastian Exp $ */ +/* $Id: zlib_fopen_wrapper.c,v 1.49 2007/04/26 12:53:34 dmitry Exp $ */ #define _GNU_SOURCE @@ -76,7 +76,7 @@ self->gz_file = NULL; } if (self->stream) { - php_stream_close(self->stream); + php_stream_free(self->stream, PHP_STREAM_FREE_CLOSE | PHP_STREAM_FREE_PRESERVE_HANDLE); self->stream = NULL; } }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php