helly Thu Oct 3 12:06:42 2002 EDT
Modified files:
/php4/main streams.c
Log:
fix position handling
Index: php4/main/streams.c
diff -u php4/main/streams.c:1.88 php4/main/streams.c:1.89
--- php4/main/streams.c:1.88 Wed Oct 2 09:25:38 2002
+++ php4/main/streams.c Thu Oct 3 12:06:41 2002
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: streams.c,v 1.88 2002/10/02 13:25:38 helly Exp $ */
+/* $Id: streams.c,v 1.89 2002/10/03 16:06:41 helly Exp $ */
#define _GNU_SOURCE
#include "php.h"
@@ -519,8 +519,10 @@
didread += toread;
}
- if (size == 0)
+ if (size == 0) {
+ stream->position += didread;
return didread;
+ }
if (stream->flags & PHP_STREAM_FLAG_NO_BUFFER || stream->chunk_size == 1) {
if (stream->filterhead) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php