diff options
author | Konstantin Kopachev <tenzzor@gmail.com> | 2018-09-17 21:44:01 -0700 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2019-10-03 06:50:43 +0200 |
commit | 05560b67bc87a2bcbfd5b48a48443a62f3311e7d (patch) | |
tree | eda0a78887a15d6a8e6c6852ea0d6d7572f8430c /NEWS | |
parent | f2fb37a772908a9331e67f583fddcc4b1b186ccf (diff) | |
download | php-git-05560b67bc87a2bcbfd5b48a48443a62f3311e7d.tar.gz |
Fix #76859 stream_get_line skips data if used with data-generating filter
stream_get-line repeatedly calls php_stream_fill_read_buffer until
enough data is accumulated in buffer. However, when stream contains
filters attached to it, then each call to fill buffer essentially
resets buffer read/write pointers and new data is written over old.
This causes stream_get_line to skip parts of data from stream
This patch fixes such behavior, so fill buffer call will append.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -21,6 +21,8 @@ PHP NEWS (Thomas Calvet) . Fixed bug #78612 (strtr leaks memory when integer keys are used and the subject string shorter). (Nikita) + . Fixed bug #76859 (stream_get_line skips data if used with data-generating + filter). (kkopachev) 26 Sep 2019, PHP 7.2.23 |