Browse Source

Add the mode string that was used to open the stream to the meta data,

as requested by Philip Olson.
migration/unlabaled-1.3.2
Wez Furlong 24 years ago
parent
commit
0fd995f9fc
  1. 2
      ext/standard/streamsfuncs.c

2
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;

Loading…
Cancel
Save