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

index 9e776db23ef4394cb78c3e2d43faf4de842c6147..11a46725ba0ba063b74844353447756359d18711 100644 (file)
@@ -154,6 +154,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;