summaryrefslogtreecommitdiff
path: root/main/memory_streams.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-11-18 12:40:12 +0000
committerWez Furlong <wez@php.net>2002-11-18 12:40:12 +0000
commit039d6a16685e5d72e17d61145e709745fbc643e4 (patch)
tree9bb4aa99cf72503f64f59a76759cf4e62b13c6f4 /main/memory_streams.c
parentd9ecd30cc49d8a2b13e59ddd2cc0996845260234 (diff)
downloadphp-git-039d6a16685e5d72e17d61145e709745fbc643e4.tar.gz
wb -> r+b
Diffstat (limited to 'main/memory_streams.c')
-rw-r--r--main/memory_streams.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/memory_streams.c b/main/memory_streams.c
index 5fadd14b86..1f77aa4fc9 100644
--- a/main/memory_streams.c
+++ b/main/memory_streams.c
@@ -221,7 +221,7 @@ PHPAPI php_stream *_php_stream_memory_create(int mode STREAMS_DC TSRMLS_DC)
self->smax = -1;
self->mode = mode;
- stream = php_stream_alloc(&php_stream_memory_ops, self, 0, "rwb");
+ stream = php_stream_alloc(&php_stream_memory_ops, self, 0, "r+b");
stream->flags |= PHP_STREAM_FLAG_NO_BUFFER;
return stream;
}
@@ -434,7 +434,7 @@ PHPAPI php_stream *_php_stream_temp_create(int mode, size_t max_memory_usage STR
assert(self != NULL);
self->smax = max_memory_usage;
self->mode = mode;
- stream = php_stream_alloc(&php_stream_temp_ops, self, 0, "rwb");
+ stream = php_stream_alloc(&php_stream_temp_ops, self, 0, "r+b");
stream->flags |= PHP_STREAM_FLAG_NO_BUFFER;
self->innerstream = php_stream_memory_create(mode);