diff options
| author | Arnaud Le Blanc <lbarnaud@php.net> | 2008-11-03 16:59:18 +0000 |
|---|---|---|
| committer | Arnaud Le Blanc <lbarnaud@php.net> | 2008-11-03 16:59:18 +0000 |
| commit | 5e5e4293c3dfcff4f3aaa73f5ec13aff1c7787a1 (patch) | |
| tree | 505a9215e53a9aa1a66121d1b82ebabb2ef59a55 /main/streams/plain_wrapper.c | |
| parent | 2d36d06f35f8e397ad353d1ab6537e615cb863b9 (diff) | |
| download | php-git-5e5e4293c3dfcff4f3aaa73f5ec13aff1c7787a1.tar.gz | |
MFH: Fixed bug #45303 (Opening php:// wrapper in append mode results
in a warning)
Diffstat (limited to 'main/streams/plain_wrapper.c')
| -rw-r--r-- | main/streams/plain_wrapper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 858a633b50..fa2eeff810 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -242,6 +242,7 @@ PHPAPI php_stream *_php_stream_fopen_from_fd(int fd, const char *mode, const cha #ifdef ESPIPE if (stream->position == (off_t)-1 && errno == ESPIPE) { stream->position = 0; + stream->flags |= PHP_STREAM_FLAG_NO_SEEK; self->is_pipe = 1; } #endif |
