From: Antony Dovgal Date: Tue, 24 May 2005 10:13:52 +0000 (+0000) Subject: make it compile on Win32 (thanks to Sebastian for noticing) X-Git-Tag: php-5.0.1b1~179 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=041b37b2b968f73837c8dcba0204202c20d717a5;p=php make it compile on Win32 (thanks to Sebastian for noticing) --- diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 11a46725ba..8ef2ae080e 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -154,8 +154,8 @@ 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; + stream->wrapper = &php_plain_files_wrapper; self->temp_file_name = opened_path; self->lock_flag = LOCK_UN;