1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 15:08:16 +02:00
Files
archived-php-src/ext
Christoph M. Becker 963e50c8c4 Fix #75776: Flushing streams with compression filter is broken
First, the `bzip2.compress` filter has the same issue as `zlib.deflate`
so we port the respective fix[1] to ext/bz2.

Second, there is still an issue, if a stream with an attached
compression filter is flushed before it is closed, without any writes
in between.  In that case, the compression is never finalized.  We fix
this by enforcing a `_php_stream_flush()` with the `closing` flag set
in `_php_stream_free()`, whenever a write filter is attached.  This
call is superfluous for most write filters, but does not hurt, even
when it is unnecessary.

[1] <http://git.php.net/?p=php-src.git;a=commit;h=20e75329f2adb11dd231852c061926d0e4080929>

Closes GH-6703.
2021-02-22 15:28:46 +01:00
..
2019-12-16 10:32:49 -08:00
2021-02-02 10:31:16 +01:00
2021-01-25 10:44:05 +00:00
2020-01-03 18:51:07 +01:00
2020-10-26 13:09:30 +01:00
2020-08-31 09:32:55 +02:00
2020-10-30 15:47:18 +01:00
2020-06-23 16:00:11 +02:00
2020-08-24 17:36:50 +02:00
2020-10-15 10:16:56 +02:00
2020-02-03 13:41:31 +01:00
2020-10-09 15:24:53 +02:00
2020-10-22 17:05:07 +01:00
2020-07-28 10:27:22 +02:00
2020-10-26 15:40:12 +01:00
2021-02-02 16:46:16 +01:00
2020-10-29 13:09:19 +01:00
2020-10-28 12:18:02 +01:00
2020-02-03 13:41:31 +01:00
2020-08-05 10:39:30 +02:00
2020-05-13 23:25:28 +02:00
2020-11-02 11:39:42 +01:00
2020-08-26 12:11:22 +02:00
2020-08-10 12:25:26 +02:00
2020-01-30 13:06:25 +01:00
2020-10-30 15:47:18 +01:00
2020-02-03 13:41:31 +01:00