]> granicus.if.org Git - php/commitdiff
use portable fseek
authorAnatol Belski <ab@php.net>
Wed, 11 Mar 2015 07:55:16 +0000 (08:55 +0100)
committerAnatol Belski <ab@php.net>
Wed, 11 Mar 2015 20:46:37 +0000 (21:46 +0100)
main/streams/plain_wrapper.c

index 6af8ffa964fe4e6e9ead7af25315e4b07aa2390a..6715d7f878355b36b8bc11d82dd260227d554fc6 100644 (file)
@@ -336,7 +336,7 @@ static size_t php_stdiop_write(php_stream *stream, const char *buf, size_t count
 
 #if HAVE_FLUSHIO
                if (!data->is_pipe && data->last_op == 'r') {
-                       fseek(data->file, 0, SEEK_CUR);
+                       zend_fseek(data->file, 0, SEEK_CUR);
                }
                data->last_op = 'w';
 #endif