diff options
Diffstat (limited to 'main/memory_streams.c')
-rw-r--r-- | main/memory_streams.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/memory_streams.c b/main/memory_streams.c index d27db784ca..579bd26cad 100644 --- a/main/memory_streams.c +++ b/main/memory_streams.c @@ -268,6 +268,7 @@ PHPAPI php_stream *_php_stream_memory_open(int mode, char *buf, size_t length ST assert(buf != NULL); php_stream_write(stream, buf, length); } + ms = stream->abstract; ms->mode = mode; } return stream; |