summaryrefslogtreecommitdiff
path: root/ext/standard/streamsfuncs.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2003-11-03 14:12:46 +0000
committerDerick Rethans <derick@php.net>2003-11-03 14:12:46 +0000
commit3ab8d263b89d3cd3c5f4268b6f2aa123dddb5859 (patch)
tree8710a0a9d942b5fdc7a6a998018115df8740fe82 /ext/standard/streamsfuncs.c
parent040d945fb7881ad9ffef1170210ac806f0db61e3 (diff)
downloadphp-git-3ab8d263b89d3cd3c5f4268b6f2aa123dddb5859.tar.gz
- Always store the URI path in the streams structure, and expose it with
stream_get_meta_data().
Diffstat (limited to 'ext/standard/streamsfuncs.c')
-rw-r--r--ext/standard/streamsfuncs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c
index c0af60d895..ae9ed56184 100644
--- a/ext/standard/streamsfuncs.c
+++ b/ext/standard/streamsfuncs.c
@@ -364,6 +364,7 @@ PHP_FUNCTION(stream_get_meta_data)
add_assoc_long(return_value, "unread_bytes", stream->writepos - stream->readpos);
add_assoc_bool(return_value, "seekable", (stream->ops->seek) && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0);
+ add_assoc_string(return_value, "uri", stream->orig_path, 1);
if (!php_stream_populate_meta_data(stream, return_value)) {
add_assoc_bool(return_value, "timed_out", 0);