From: Wez Furlong Date: Fri, 5 Dec 2003 20:25:14 +0000 (+0000) Subject: Probable fix for #26534 X-Git-Tag: php-5.0.0b3RC1~276 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a9cf22ed1d4a89cb5ab5cf0449ffbadca829d2e;p=php Probable fix for #26534 --- diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 572aac1cb2..53338b2b35 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -444,7 +444,9 @@ 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 (stream->orig_path) { + 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);