com php-src: use portable fseek: main/streams/plain_wrapper .c
| From: | Anatol Belski | Date: | Wed, 11 Mar 2015 20:46:37 +0000 |
| Subject: | com php-src: use portable fseek: main/streams/plain_wrapper .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85472@lists.php.net to get a copy of this message | ||
Commit: f43cc2a19a8541ca19d4508bdb4fa95e7fd9590b
Author: Anatol Belski <ab@php.net> Wed, 11 Mar 2015 08:55:16 +0100
Parents: 589374d02723ad71a35e0512fdd65a1c7d18bf69
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f43cc2a19a8541ca19d4508bdb4fa95e7fd9590b
Log:
use portable fseek
Changed paths:
M main/streams/plain_wrapper.c
Diff:
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c
index 6af8ffa..6715d7f 100644
--- a/main/streams/plain_wrapper.c
+++ b/main/streams/plain_wrapper.c
@@ -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