]> granicus.if.org Git - php/commitdiff
fix c/p issue
authorAnatol Belski <ab@php.net>
Tue, 30 Jun 2015 15:37:38 +0000 (17:37 +0200)
committerAnatol Belski <ab@php.net>
Thu, 2 Jul 2015 12:22:58 +0000 (14:22 +0200)
main/streams/plain_wrapper.c

index 2fcaa9c645eccd3fa1bf8eab0e31ce4822967862..aa1ba274e670bc49ba03f9f407a272b0a593815e 100644 (file)
@@ -170,8 +170,8 @@ static php_stream *_php_stream_fopen_from_fd_int(int fd, const char *mode, const
        self->is_process_pipe = 0;
        self->temp_name = NULL;
        self->fd = fd;
-#ifndef PHP_WIN32
-       is_pipe_blocking = 0;
+#ifdef PHP_WIN32
+       self->is_pipe_blocking = 0;
 #endif
 
        return php_stream_alloc_rel(&php_stream_stdio_ops, self, persistent_id, mode);
@@ -189,8 +189,8 @@ static php_stream *_php_stream_fopen_from_file_int(FILE *file, const char *mode
        self->is_process_pipe = 0;
        self->temp_name = NULL;
        self->fd = fileno(file);
-#ifndef PHP_WIN32
-       is_pipe_blocking = 0;
+#ifdef PHP_WIN32
+       self->is_pipe_blocking = 0;
 #endif
 
        return php_stream_alloc_rel(&php_stream_stdio_ops, self, 0, mode);
@@ -318,8 +318,8 @@ PHPAPI php_stream *_php_stream_fopen_from_pipe(FILE *file, const char *mode STRE
        self->is_process_pipe = 1;
        self->fd = fileno(file);
        self->temp_name = NULL;
-#ifndef PHP_WIN32
-       is_pipe_blocking = 0;
+#ifdef PHP_WIN32
+       self->is_pipe_blocking = 0;
 #endif
 
        stream = php_stream_alloc_rel(&php_stream_stdio_ops, self, 0, mode);