From 0fd995f9fcf944f874403657e52e9c60f2e463c6 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 18 Mar 2003 23:45:27 +0000 Subject: [PATCH] Add the mode string that was used to open the stream to the meta data, as requested by Philip Olson. --- ext/standard/streamsfuncs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 5e0c48b491..eaae8a25c4 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -309,6 +309,8 @@ PHP_FUNCTION(stream_get_meta_data) } add_assoc_string(return_value, "stream_type", (char *)stream->ops->label, 1); + add_assoc_string(return_value, "mode", stream->mode, 1); + #if 0 /* TODO: needs updating for new filter API */ if (stream->filterhead) { php_stream_filter *filter; -- 2.50.1