From: Wez Furlong Date: Tue, 18 Mar 2003 23:45:27 +0000 (+0000) Subject: Add the mode string that was used to open the stream to the meta data, X-Git-Tag: RELEASE_0_5~416 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0fd995f9fcf944f874403657e52e9c60f2e463c6;p=php Add the mode string that was used to open the stream to the meta data, as requested by Philip Olson. --- 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;