diff options
| author | Mark A. Hershberger <mah@debian.(none)> | 2009-03-25 00:35:48 -0400 |
|---|---|---|
| committer | Mark A. Hershberger <mah@debian.(none)> | 2009-03-25 00:35:48 -0400 |
| commit | a88a88d0986a4a32288c102cdbfebd78d7e91d99 (patch) | |
| tree | 96e2d12c750b8a77b35f14b88f79ab8fda4bc89c /main/streams/plain_wrapper.c | |
| parent | ba50031707469046407a35b77a3cd81351e951b3 (diff) | |
| download | php-upstream/5.1.6.tar.gz | |
Imported Upstream version 5.1.6upstream/5.1.6
Diffstat (limited to 'main/streams/plain_wrapper.c')
| -rw-r--r-- | main/streams/plain_wrapper.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 1af042752..98a7bd636 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: plain_wrapper.c,v 1.52.2.6 2006/01/17 02:32:09 iliaa Exp $ */ +/* $Id: plain_wrapper.c,v 1.52.2.7 2006/08/22 06:16:19 dmitry Exp $ */ #include "php.h" #include "php_globals.h" @@ -194,10 +194,9 @@ PHPAPI php_stream *_php_stream_fopen_from_fd(int fd, const char *mode, const cha #elif defined(PHP_WIN32) { long handle = _get_osfhandle(self->fd); - DWORD in_buf_size, out_buf_size; if (handle != 0xFFFFFFFF) { - self->is_pipe = GetNamedPipeInfo((HANDLE)handle, NULL, &out_buf_size, &in_buf_size, NULL); + self->is_pipe = GetFileType((HANDLE)handle) == FILE_TYPE_PIPE; } } #endif |
