Bug #78662 [Opn->Asn]: stream bad error detection

From: Date: Fri, 11 Oct 2019 11:27:41 +0000
Subject: Bug #78662 [Opn->Asn]: stream bad error detection
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223174@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: Open +Status: Assigned Type: Bug Package: Streams related Operating System: N/A PHP Version: 7.4.0RC3 -Assigned To: +Assigned To: remi Block user comment: N Private report: N New Comment: Trivial fix: - if (didwrite > count) { + if (didwrite > 0 && didwrite > count) { Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#223174) next »