From c696087e323263e941774ebbf902ac249774ec9f Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Sat, 15 Feb 2025 00:23:38 +0100 Subject: [PATCH] Fix error message on Windows --- ext/zlib/zlib_fopen_wrapper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/zlib/zlib_fopen_wrapper.c b/ext/zlib/zlib_fopen_wrapper.c index 0b0d11682f2..bcf0e33c56e 100644 --- a/ext/zlib/zlib_fopen_wrapper.c +++ b/ext/zlib/zlib_fopen_wrapper.c @@ -61,7 +61,7 @@ static ssize_t php_gziop_read(php_stream *stream, char *buf, size_t count) } if (UNEXPECTED(read < 0)) { - php_gziop_report_errors(stream, count, "Read"); + php_gziop_report_errors(stream, chunk_size, "Read"); return read; } @@ -87,7 +87,7 @@ static ssize_t php_gziop_write(php_stream *stream, const char *buf, size_t count count -= chunk_size; if (UNEXPECTED(written < 0)) { - php_gziop_report_errors(stream, count, "Write"); + php_gziop_report_errors(stream, chunk_size, "Write"); return written; }