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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
27 + 20 = ?
Subscribe to this entry?

 
 [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: Sun Dec 08 05:01:28 2024 UTC