php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78662 stream_write bad error detection
Submitted: 2019-10-11 11:26 UTC Modified: 2019-10-11 11:39 UTC
From: remi@php.net Assigned: remi (profile)
Status: Closed Package: Streams related
PHP Version: 7.4.0RC3 OS: N/A
Private report: No CVE-ID: None
 [2019-10-11 11:26 UTC] 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)




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-10-11 11:27 UTC] remi@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: remi
 [2019-10-11 11:27 UTC] remi@php.net
Trivial fix:

-       if (didwrite > count) {
+       if (didwrite > 0 && didwrite > count) {
 [2019-10-11 11:37 UTC] remi@php.net
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
 [2019-10-11 11:37 UTC] remi@php.net
-Status: Assigned +Status: Closed
 [2019-10-11 11:38 UTC] remi@php.net
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
 [2019-10-11 11:39 UTC] remi@php.net
-Summary: stream bad error detection +Summary: stream_write bad error detection
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 09:01:32 2024 UTC