<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/php-git.git/ext/zlib/tests, branch php-8.0.3</title>
<subtitle>git.php.net: repository/php-src.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/'/>
<entry>
<title>Merge branch 'PHP-7.4' into PHP-8.0</title>
<updated>2020-12-08T11:24:49+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2020-12-08T11:24:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=fb4bc0f9e589a862d0fb1c05467bf589f86cee96'/>
<id>fb4bc0f9e589a862d0fb1c05467bf589f86cee96</id>
<content type='text'>
* PHP-7.4:
  Fix #48725: Support for flushing in zlib stream
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* PHP-7.4:
  Fix #48725: Support for flushing in zlib stream
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #48725: Support for flushing in zlib stream</title>
<updated>2020-12-08T11:23:24+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2020-08-19T16:19:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=20e75329f2adb11dd231852c061926d0e4080929'/>
<id>20e75329f2adb11dd231852c061926d0e4080929</id>
<content type='text'>
When `php_zlib_deflate_filter()` is called with `PSFS_FLAG_FLUSH_INC`
but without new buckets being available (e.g. because a user calls
`rewind()` after writing to the stream), we have to make sure that any
pending data are flushed.  This could basically be done like in the
attached patch[1], but that could cause unnessary flushes, which can be
harmful for compression, and adds unnecessary flush markers to the
stream.  Thus, we use the `php_zlib_filter_data.finished` field, which
has not been used for `zlib.deflate` filters, and properly keep track
of the need to flush.

[1] &lt;https://bugs.php.net/patch-display.php?bug_id=48725&amp;patch=zlib-filter-flush-fix.patch&amp;revision=latest&gt;

Closes GH-6019.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When `php_zlib_deflate_filter()` is called with `PSFS_FLAG_FLUSH_INC`
but without new buckets being available (e.g. because a user calls
`rewind()` after writing to the stream), we have to make sure that any
pending data are flushed.  This could basically be done like in the
attached patch[1], but that could cause unnessary flushes, which can be
harmful for compression, and adds unnecessary flush markers to the
stream.  Thus, we use the `php_zlib_filter_data.finished` field, which
has not been used for `zlib.deflate` filters, and properly keep track
of the need to flush.

[1] &lt;https://bugs.php.net/patch-display.php?bug_id=48725&amp;patch=zlib-filter-flush-fix.patch&amp;revision=latest&gt;

Closes GH-6019.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'PHP-7.4' into PHP-8.0</title>
<updated>2020-12-08T10:49:28+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2020-12-08T10:49:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=d6ae0f010ec6bc4713dc9fe79e79947c2404a8dd'/>
<id>d6ae0f010ec6bc4713dc9fe79e79947c2404a8dd</id>
<content type='text'>
* PHP-7.4:
  Fix #77069: stream filter loses final block of data
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* PHP-7.4:
  Fix #77069: stream filter loses final block of data
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #77069: stream filter loses final block of data</title>
<updated>2020-12-08T10:47:49+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2020-09-22T14:02:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=65f5573bc82108bbaf2727ffa11575f3292d736f'/>
<id>65f5573bc82108bbaf2727ffa11575f3292d736f</id>
<content type='text'>
Reading from a stream may return greater than zero, but nonetheless the
stream's EOF flag may have been set.  We have to cater to this
condition by setting the close flag for filters.

We also have to cater to that change in the zlib.inflate filter:

If `inflate()` is called with flush mode `Z_FINISH`, but the output
buffer is not large enough to inflate all available data, it fails with
`Z_BUF_ERROR`.  However, `Z_BUF_ERROR` is not fatal; in fact, the zlib
manual states: "If deflate returns with Z_OK or Z_BUF_ERROR, this
function must be called again with Z_FINISH and more output space
(updated avail_out) but no more input data, until it returns with
Z_STREAM_END or an error."  Hence, we do so.

Closes GH-6001.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reading from a stream may return greater than zero, but nonetheless the
stream's EOF flag may have been set.  We have to cater to this
condition by setting the close flag for filters.

We also have to cater to that change in the zlib.inflate filter:

If `inflate()` is called with flush mode `Z_FINISH`, but the output
buffer is not large enough to inflate all available data, it fails with
`Z_BUF_ERROR`.  However, `Z_BUF_ERROR` is not fatal; in fact, the zlib
manual states: "If deflate returns with Z_OK or Z_BUF_ERROR, this
function must be called again with Z_FINISH and more output space
(updated avail_out) but no more input data, until it returns with
Z_STREAM_END or an error."  Hence, we do so.

Closes GH-6001.
</pre>
</div>
</content>
</entry>
<entry>
<title>Review parameter names in ext/zlib</title>
<updated>2020-10-05T13:20:27+00:00</updated>
<author>
<name>Máté Kocsis</name>
<email>kocsismate@woohoolabs.com</email>
</author>
<published>2020-10-01T08:34:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=e9c707298b8411a0cb5299bbbdaa9b0e16a4eb49'/>
<id>e9c707298b8411a0cb5299bbbdaa9b0e16a4eb49</id>
<content type='text'>
Closes GH-6250
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes GH-6250
</pre>
</div>
</content>
</entry>
<entry>
<title>Consolidate the usage of "either" and "one of" in error messages</title>
<updated>2020-09-20T17:41:47+00:00</updated>
<author>
<name>Máté Kocsis</name>
<email>kocsismate@woohoolabs.com</email>
</author>
<published>2020-09-20T08:41:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=e950ca13ea2e8f012ded007ac1251eea01269542'/>
<id>e950ca13ea2e8f012ded007ac1251eea01269542</id>
<content type='text'>
Closes GH-6173
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes GH-6173
</pre>
</div>
</content>
</entry>
<entry>
<title>Run tidy</title>
<updated>2020-09-18T12:28:32+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2020-09-18T12:28:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=c5401854fcea27ff9aabfd0682ff4d81bbb3c888'/>
<id>c5401854fcea27ff9aabfd0682ff4d81bbb3c888</id>
<content type='text'>
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add many missing closing PHP tags to tests</title>
<updated>2020-08-09T20:03:36+00:00</updated>
<author>
<name>Máté Kocsis</name>
<email>kocsismate@woohoolabs.com</email>
</author>
<published>2020-08-09T09:06:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=7aacc705d03887c64a90489e367f4c40b46aa3c2'/>
<id>7aacc705d03887c64a90489e367f4c40b46aa3c2</id>
<content type='text'>
Closes GH-5958
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes GH-5958
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'PHP-7.4'</title>
<updated>2020-08-06T10:35:37+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2020-08-06T10:35:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=b3f0f35fd7c6f87d1dbe36ce2c6b18e80c3d92f6'/>
<id>b3f0f35fd7c6f87d1dbe36ce2c6b18e80c3d92f6</id>
<content type='text'>
* PHP-7.4:
  Fix file clash in zlib test
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* PHP-7.4:
  Fix file clash in zlib test
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix file clash in zlib test</title>
<updated>2020-08-06T10:34:14+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2020-08-06T10:34:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=a35379de2e5e9d2eb95714467e3e4274b3a79698'/>
<id>a35379de2e5e9d2eb95714467e3e4274b3a79698</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
