From 6f4fe0e7ff9075aa68ff8f163e7167992660d400 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 5 Oct 2005 17:18:06 +0000 Subject: [PATCH] fix bugs #34743 & #34118 (fseek/fread unicode related problems in HEAD) patch by Alex --- main/streams/streams.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/streams/streams.c b/main/streams/streams.c index 2856b25aa5..0385d590d4 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -855,6 +855,8 @@ PHPAPI void *_php_stream_u_read(php_stream *stream, void *buf, int32_t *pnum_byt *pnum_chars = num_chars; *pis_unicode = is_unicode; + stream->position += num_bytes; + if (num_chars == 0 && grow_mode) { efree(buf); buf = NULL; -- 2.40.0