iliaa Fri Oct 4 14:44:47 2002 EDT
Modified files:
/php4/main streams.c
Log:
Fixed bug #19746
Index: php4/main/streams.c
diff -u php4/main/streams.c:1.90 php4/main/streams.c:1.91
--- php4/main/streams.c:1.90 Fri Oct 4 14:21:40 2002
+++ php4/main/streams.c Fri Oct 4 14:44:47 2002
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: streams.c,v 1.90 2002/10/04 18:21:40 sas Exp $ */
+/* $Id: streams.c,v 1.91 2002/10/04 18:44:47 iliaa Exp $ */
#define _GNU_SOURCE
#include "php.h"
@@ -711,6 +711,8 @@
size_t toread = maxlen - 1;
if (toread > stream->chunk_size)
toread = stream->chunk_size;
+ else if (toread < stream->chunk_size)
+ stream->chunk_size = toread;
/* XXX: Should not the loop end, if the stream op fails? */
php_stream_fill_read_buffer(stream, toread TSRMLS_CC);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php