wez Tue Jun 29 17:51:53 2004 EDT Modified files: /php-src/main/streams streams.c Log: Fix for Bug #28964 fread "greedy" behaviour http://cvs.php.net/diff.php/php-src/main/streams/streams.c?r1=1.57&r2=1.58&ty=u Index: php-src/main/streams/streams.c diff -u php-src/main/streams/streams.c:1.57 php-src/main/streams/streams.c:1.58 --- php-src/main/streams/streams.c:1.57 Mon Jun 21 17:08:05 2004 +++ php-src/main/streams/streams.c Tue Jun 29 17:51:53 2004 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: streams.c,v 1.57 2004/06/21 21:08:05 pollita Exp $ */ +/* $Id: streams.c,v 1.58 2004/06/29 21:51:53 wez Exp $ */ #define _GNU_SOURCE #include "php.h" @@ -590,6 +590,9 @@ /* EOF, or temporary end of data (for non-blocking mode). */ break; } + + /* just break anyway, to avoid greedy read */ + break; } if (didread > 0) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php