From: Ilia Alshanetsky Date: Mon, 23 May 2005 21:51:00 +0000 (+0000) Subject: MFH: Fixed bug #32810 (temporary files not using plain file wrapper). X-Git-Tag: php-4.4.0RC1~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04d0a786499f211bf2474049da67cda1f2523c51;p=php MFH: Fixed bug #32810 (temporary files not using plain file wrapper). --- diff --git a/NEWS b/NEWS index 953fdfe789..16b0ae4f0c 100644 --- 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) diff --git a/main/streams.c b/main/streams.c index 8ce94463bb..775587f185 100755 --- a/main/streams.c +++ b/main/streams.c @@ -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;