cvs: php4 /main streams.c
| From: | Ilia Alshanetsky | Date: | Fri, 04 Oct 2002 18:44:47 +0000 |
| Subject: | cvs: php4 /main streams.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14542@lists.php.net to get a copy of this message | ||
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);