]> granicus.if.org Git - php/commitdiff
fix bugs #34743 & #34118 (fseek/fread unicode related problems in HEAD)
authorAntony Dovgal <tony2001@php.net>
Wed, 5 Oct 2005 17:18:06 +0000 (17:18 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 5 Oct 2005 17:18:06 +0000 (17:18 +0000)
patch by Alex

main/streams/streams.c

index 2856b25aa58302fba47164ce55cb15855fce5fdd..0385d590d4f5697017eb8499de15ce567f698b6c 100755 (executable)
@@ -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;