]> granicus.if.org Git - php/commitdiff
make it compile on Win32 (thanks to Sebastian for noticing)
authorAntony Dovgal <tony2001@php.net>
Tue, 24 May 2005 10:13:52 +0000 (10:13 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 24 May 2005 10:13:52 +0000 (10:13 +0000)
main/streams/plain_wrapper.c

index 11a46725ba0ba063b74844353447756359d18711..8ef2ae080eb529b6d7ecb68c674e1f0ef4ae39e0 100644 (file)
@@ -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;