summaryrefslogtreecommitdiff
path: root/main/streams/plain_wrapper.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-06-30 17:37:38 +0200
committerAnatol Belski <ab@php.net>2015-07-02 14:22:58 +0200
commit4e5758f37741187c5d5d61c5dcb3f0a472890195 (patch)
treeabf28e2e2c212cceb6f0b350f3249eab28c2d7c7 /main/streams/plain_wrapper.c
parentd516a14fb93705ec03b39e611899a95bc0d591fe (diff)
downloadphp-git-4e5758f37741187c5d5d61c5dcb3f0a472890195.tar.gz
fix c/p issue
Diffstat (limited to 'main/streams/plain_wrapper.c')
-rw-r--r--main/streams/plain_wrapper.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c
index 2fcaa9c645..aa1ba274e6 100644
--- a/main/streams/plain_wrapper.c
+++ b/main/streams/plain_wrapper.c
@@ -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);