]> granicus.if.org Git - php/commitdiff
Fixed bug #22538 (stream filter problem)
authorMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 31 Mar 2003 23:22:10 +0000 (23:22 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 31 Mar 2003 23:22:10 +0000 (23:22 +0000)
main/streams/streams.c

index 8abf10bc8f60634b618a0d34f4d9ba142fbd9880..e473dad154d25160ba1c792798f49e3b1dce8fc8 100755 (executable)
@@ -843,7 +843,7 @@ static size_t _php_stream_write_buffer(php_stream *stream, const char *buf, size
                        
                        /* Only screw with the buffer if we can seek, otherwise we lose data
                         * buffered from fifos and sockets */
-                       if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0 && !php_stream_is_filtered(stream)) {
+                       if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) {
                                stream->position += justwrote;
                        }
                } else {