]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #32810 (temporary files not using plain file wrapper).
authorIlia Alshanetsky <iliaa@php.net>
Mon, 23 May 2005 21:51:00 +0000 (21:51 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 23 May 2005 21:51:00 +0000 (21:51 +0000)
NEWS
main/streams.c

diff --git a/NEWS b/NEWS
index 953fdfe78978db1fad552db7e8aa4bdfcd867ec3..16b0ae4f0c7c2512b42d8219c1928ad9aa76437e 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -23,6 +23,7 @@ PHP 4                                                                      NEWS
 - Fixed bug #32932 (Oracle LDAP: ldap_get_entries invalid pointer). (Jani)
 - Fixed bug #32904 (pg_get_notify() ignores result_type parameter). (Tony)
 - Fixed bug #32813 (parse_url() does not handle scheme-only urls properly). (Ilia)
+- Fixed bug #32810 (temporary files not using plain file wrapper). (Ilia)
 - Fixed bug #32802 (General cookie overrides more specific cookie). (Ilia)
 - Fixed bugs #32800, #32830 (ext/odbc: Problems with 64bit systems). (Jani)
 - Fixed bug #32773 (GMP functions break when second parameter is 0). (Stas)
index 8ce94463bb93e31fdf2f462554481ff88e9e178e..775587f18518b48380c3523dbc2c021464aa0dea 100755 (executable)
@@ -1371,6 +1371,7 @@ PHPAPI php_stream *_php_stream_fopen_tmpfile(int dummy STREAMS_DC TSRMLS_DC)
        if (fd != -1)   {
                php_stream *stream = php_stream_fopen_from_fd_rel(fd, "r+b", NULL);
                if (stream) {
+                       stream->wrapper = &php_plain_files_wrapper;
                        php_stdio_stream_data *self = (php_stdio_stream_data*)stream->abstract;
 
                        self->temp_file_name = opened_path;