cvs: php4 /main streams.c

From: Date: Thu, 03 Oct 2002 16:06:42 +0000
Subject: cvs: php4 /main streams.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-14499@lists.php.net to get a copy of this message
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) {

« previous php.cvs (#14499) next »