summaryrefslogtreecommitdiff
path: root/ext/standard/streamsfuncs.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-03-18 23:45:27 +0000
committerWez Furlong <wez@php.net>2003-03-18 23:45:27 +0000
commit0fd995f9fcf944f874403657e52e9c60f2e463c6 (patch)
tree163484f2a7f1f9c2025c97dbb60794097258ce06 /ext/standard/streamsfuncs.c
parent86fb577d591b1b3f6fb5d752ba3912bcb6f6a704 (diff)
downloadphp-git-0fd995f9fcf944f874403657e52e9c60f2e463c6.tar.gz
Add the mode string that was used to open the stream to the meta data,
as requested by Philip Olson.
Diffstat (limited to 'ext/standard/streamsfuncs.c')
-rw-r--r--ext/standard/streamsfuncs.c2
1 files changed, 2 insertions, 0 deletions
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;