]> granicus.if.org Git - php/commitdiff
Bugfix #35315 stream->position != stream->abstract
authorSara Golemon <pollita@php.net>
Tue, 22 Nov 2005 22:36:14 +0000 (22:36 +0000)
committerSara Golemon <pollita@php.net>
Tue, 22 Nov 2005 22:36:14 +0000 (22:36 +0000)
ext/standard/php_fopen_wrapper.c

index ff6c8a385158b7d6b9b65156beea99a72fe02e23..d88ff7e0914531e34a08877eb50a8da5b622f267 100644 (file)
@@ -73,7 +73,7 @@ static size_t php_stream_input_write(php_stream *stream, const char *buf, size_t
 
 static size_t php_stream_input_read(php_stream *stream, char *buf, size_t count TSRMLS_DC)
 {
-       off_t *position = (off_t*)stream->position;
+       off_t *position = (off_t*)stream->abstract;
        size_t read_bytes = 0;
 
        if(!stream->eof) {