Skip to content

Fix #81092: fflush before stream_filter_remove corrupts stream#7113

Closed
cmb69 wants to merge 1 commit intophp:PHP-7.4from
cmb69:cmb/81092
Closed

Fix #81092: fflush before stream_filter_remove corrupts stream#7113
cmb69 wants to merge 1 commit intophp:PHP-7.4from
cmb69:cmb/81092

Conversation

@cmb69
Copy link
Member

@cmb69 cmb69 commented Jun 7, 2021

When doing a non finishing flush, BZ2_bzCompress() returns BZ_FLUSH_OK
(not BZ_FINISH_OK) what requires us to do further flushes right away.

We also refactor the while-loop as do-loop.

When doing a non finishing flush, BZ2_bzCompress() returns BZ_FLUSH_OK
(not BZ_FINISH_OK) what requires us to do further flushes right away.

We also refactor the while-loop as do-loop.
@cmb69 cmb69 added the Bug label Jun 7, 2021
@cmb69 cmb69 closed this in a1738d8 Jun 8, 2021
@cmb69 cmb69 deleted the cmb/81092 branch June 8, 2021 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants