|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patch stream_oef.diff for Streams related Bug #69049Patch version 2015-02-13 12:32 UTC Return to Bug #69049 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions:Developer: aserbulov@parallels.com
--- main/streams/plain_wrapper_orig.c Wed Jan 21 10:23:27 2015
+++ main/streams/plain_wrapper.c Fri Feb 13 18:25:26 2015
@@ -386,7 +386,7 @@
ret = read(data->fd, buf, count);
}
- stream->eof = (ret == 0 || (ret == (size_t)-1 && errno != EWOULDBLOCK && errno != EINTR && errno != EBADF));
+ stream->eof = ((ret == 0 && count) || (ret == (size_t)-1 && errno != EWOULDBLOCK && errno != EINTR && errno != EBADF));
} else {
#if HAVE_FLUSHIO
|
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 13:00:01 2025 UTC |