From: Ilia Alshanetsky Date: Mon, 23 May 2005 21:48:51 +0000 (+0000) Subject: Fixed bug #32810 (temporary files not using plain file wrapper). X-Git-Tag: php-5.0.1b1~182 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d367b7b9136c58996a6692ed5beb61a941089f0c;p=php Fixed bug #32810 (temporary files not using plain file wrapper). --- diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 9e776db23e..11a46725ba 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -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;