php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #69049
Patch stream_oef.diff revision 2015-02-13 12:39 UTC by aserbulov at parallels dot com
revision 2015-02-13 12:32 UTC by aserbulov at parallels dot com
Patch plain_wrapper.c.diff revision 2015-02-13 05:45 UTC by aserbulov at parallels dot com

Patch stream_oef.diff for Streams related Bug #69049

Patch version 2015-02-13 12:39 UTC

Return to Bug #69049 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions:

Developer: aserbulov@parallels.com

--- main/streams/plain_wrapper.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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 05:01:28 2024 UTC