From 4839387edde2b6a551a757ebe316186f73739323 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sun, 26 Sep 2010 20:46:54 +0000 Subject: [PATCH] - fix bug #52926, zlib fopen wrapper does not use the context --- NEWS | 1 + ext/zlib/zlib_fopen_wrapper.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index f552236b3a..d902359f1e 100644 --- a/NEWS +++ b/NEWS @@ -21,6 +21,7 @@ - Fixed possible crash in mssql_fetch_batch(). (Kalle) - Fixed inconsistent backlog default value (-1) in FPM on many systems. (fat) +- Fixed bug #52926 (zlib fopen wrapper does not use context). (Gustavo) - Fixed bug #52891 (Wrong data inserted with mysqli/mysqlnd when using mysqli_stmt_bind_param and value> PHP_INT_MAX). (Andrey) - Fixed bug #52849 (GNU MP invalid version match). (Adam) diff --git a/ext/zlib/zlib_fopen_wrapper.c b/ext/zlib/zlib_fopen_wrapper.c index 8970c55a00..c0f9c249d9 100644 --- a/ext/zlib/zlib_fopen_wrapper.c +++ b/ext/zlib/zlib_fopen_wrapper.c @@ -128,7 +128,7 @@ php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, char *path, char *mod path += 5; } - innerstream = php_stream_open_wrapper(path, mode, STREAM_MUST_SEEK | options | STREAM_WILL_CAST, opened_path); + innerstream = php_stream_open_wrapper_ex(path, mode, STREAM_MUST_SEEK | options | STREAM_WILL_CAST, opened_path, context); if (innerstream) { int fd; -- 2.40.0