]> granicus.if.org Git - php/commitdiff
Add the mode string that was used to open the stream to the meta data,
authorWez Furlong <wez@php.net>
Tue, 18 Mar 2003 23:45:27 +0000 (23:45 +0000)
committerWez Furlong <wez@php.net>
Tue, 18 Mar 2003 23:45:27 +0000 (23:45 +0000)
as requested by Philip Olson.

ext/standard/streamsfuncs.c

index 5e0c48b4911e58e7d839d7a7a3adda8cc507fded..eaae8a25c41eb0958783c15f0ddc78ff7d645961 100644 (file)
@@ -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;