summaryrefslogtreecommitdiff
path: root/main/php_memory_streams.h
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2005-02-06 21:41:36 +0000
committerWez Furlong <wez@php.net>2005-02-06 21:41:36 +0000
commitf400f0e665bb8a8cdc9b13c09be7d9cc1e03db9f (patch)
tree1afea9423ca4b0c33bb0cfff23ba4cfbaae4c632 /main/php_memory_streams.h
parente3ba31e899b5b1e6cf639086e71b033c5bbb3725 (diff)
downloadphp-git-f400f0e665bb8a8cdc9b13c09be7d9cc1e03db9f.tar.gz
add an open mode for the memory streams that allows the stream to take
ownership of the passed-in buffer
Diffstat (limited to 'main/php_memory_streams.h')
-rw-r--r--main/php_memory_streams.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/php_memory_streams.h b/main/php_memory_streams.h
index 4af7745efe..1a9b9000d7 100644
--- a/main/php_memory_streams.h
+++ b/main/php_memory_streams.h
@@ -27,6 +27,7 @@
#define TEMP_STREAM_DEFAULT 0
#define TEMP_STREAM_READONLY 1
+#define TEMP_STREAM_TAKE_BUFFER 2
#define php_stream_memory_create(mode) _php_stream_memory_create((mode) STREAMS_CC TSRMLS_CC)
#define php_stream_memory_create_rel(mode) _php_stream_memory_create((mode) STREAMS_REL_CC TSRMLS_CC)