<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/php-git.git/ext/sqlite3/tests/sqlite3_30_blobopen.phpt, branch php-7.4.0RC4</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>Report errors from stream read and write operations</title>
<updated>2019-07-22T15:17:28+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2019-07-18T13:25:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=d59aac58b3e7da7ad01a194fe9840d89725ea229'/>
<id>d59aac58b3e7da7ad01a194fe9840d89725ea229</id>
<content type='text'>
The php_stream_read() and php_stream_write() functions now return
an ssize_t value, with negative results indicating failure. Functions
like fread() and fwrite() will return false in that case.

As a special case, EWOULDBLOCK and EAGAIN on non-blocking streams
should not be regarded as error conditions, and be reported as
successful zero-length reads/writes instead. The handling of EINTR
remains unclear and is internally inconsistent (e.g. some code-paths
will automatically retry on EINTR, while some won't).

I'm landing this now to make sure the stream wrapper ops API changes
make it into 7.4 -- however, if the user-facing changes turn out to
be problematic we have the option of clamping negative returns to
zero in php_stream_read() and php_stream_write() to restore the
old behavior in a relatively non-intrusive manner.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The php_stream_read() and php_stream_write() functions now return
an ssize_t value, with negative results indicating failure. Functions
like fread() and fwrite() will return false in that case.

As a special case, EWOULDBLOCK and EAGAIN on non-blocking streams
should not be regarded as error conditions, and be reported as
successful zero-length reads/writes instead. The handling of EINTR
remains unclear and is internally inconsistent (e.g. some code-paths
will automatically retry on EINTR, while some won't).

I'm landing this now to make sure the stream wrapper ops API changes
make it into 7.4 -- however, if the user-facing changes turn out to
be problematic we have the option of clamping negative returns to
zero in php_stream_read() and php_stream_write() to restore the
old behavior in a relatively non-intrusive manner.
</pre>
</div>
</content>
</entry>
<entry>
<title>Change flags to use SQLITE3_OPEN_READ* constants instead of a fake-boolean, add tests on errors</title>
<updated>2017-06-07T23:25:00+00:00</updated>
<author>
<name>BohwaZ</name>
<email>bohwaz@github.com</email>
</author>
<published>2017-06-07T23:25:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=626ee74ee8c45f22c096b6e5f6bfd9a032999333'/>
<id>626ee74ee8c45f22c096b6e5f6bfd9a032999333</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement writing to BLOBs in SQLite3</title>
<updated>2017-05-17T23:54:55+00:00</updated>
<author>
<name>BohwaZ</name>
<email>bohwaz@github.com</email>
</author>
<published>2017-05-17T23:54:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=208aea1e85964cab59d5c54984278cbb87c71006'/>
<id>208aea1e85964cab59d5c54984278cbb87c71006</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace `dirname(__FILE__)` with `__DIR__` in tests</title>
<updated>2016-09-02T22:56:09+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2016-09-02T22:55:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=2c91684394e009fa6e036d8be062bfb3ae36179d'/>
<id>2c91684394e009fa6e036d8be062bfb3ae36179d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Forgot test for the last commit</title>
<updated>2009-01-24T12:17:30+00:00</updated>
<author>
<name>Scott MacVicar</name>
<email>scottmac@php.net</email>
</author>
<published>2009-01-24T12:17:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=821e562d6ed2b4f5b9e3edcb36c3588edab7ea8c'/>
<id>821e562d6ed2b4f5b9e3edcb36c3588edab7ea8c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
