From b842d8e3d8d57ed4158b075ed17dcfa19f8be341 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Fri, 26 Aug 2005 12:56:07 +0000 Subject: [PATCH] - MFH: Fixed a bug where stream_get_meta_data() did not return the "uri" element for files opened with tmpname(). --- NEWS | 2 ++ main/streams/plain_wrapper.c | 1 + 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index d4ffe047c2..5236165a61 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,8 @@ PHP NEWS . openssl 0.9.8 . ming 0.3b . libpq (PostgreSQL) 8.0.1 +- Fixed a bug where stream_get_meta_data() did not return the "uri" element for + files opened with tmpname(). (Derick) - Fixed "make test" to work for phpized extensions. (Hartmut, Jani) - Fixed failing queries (FALSE returned) with mysqli_query() on 64 bit systems. (Andrey) diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 087a434f2b..6acb5edc86 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -156,6 +156,7 @@ PHPAPI php_stream *_php_stream_fopen_tmpfile(int dummy STREAMS_DC TSRMLS_DC) if (stream) { php_stdio_stream_data *self = (php_stdio_stream_data*)stream->abstract; stream->wrapper = &php_plain_files_wrapper; + stream->orig_path = estrdup(opened_path); self->temp_file_name = opened_path; self->lock_flag = LOCK_UN; -- 2.50.1