Bug #78662 [Asn->Csd]: stream bad error detection
| From: | remi@php.net | Date: | Fri, 11 Oct 2019 11:37:03 +0000 |
| Subject: | Bug #78662 [Asn->Csd]: stream bad error detection | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-223175@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78662&edit=1
ID: 78662
Updated by: remi@php.net
Reported by: remi@php.net
Summary: stream bad error detection
-Status: Assigned
+Status: Closed
Type: Bug
Package: Streams related
Operating System: N/A
PHP Version: 7.4.0RC3
Assigned To: remi
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of remi@remirepo.net
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5a024d2c5b17238a588bb14b6a2cdf8012a59068
Log: Fix #78662: stream_write bad error detection
Previous Comments:
------------------------------------------------------------------------
[2019-10-11 11:27:41] remi@php.net
Trivial fix:
- if (didwrite > count) {
+ if (didwrite > 0 && didwrite > count) {
------------------------------------------------------------------------
[2019-10-11 11:26:25] remi@php.net
Description:
------------
Running icewind/streams test suite
1) Icewind\Streams\Tests\RetryWrapperTest::testFailedWrite
fwrite(): \Icewind\Streams\Tests\FailWrapper::stream_write wrote -4 bytes more data than requested
(-1 written, 3 max)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78662&edit=1