diff options
author | Dmitry Stogov <dmitry@php.net> | 2006-09-28 07:26:19 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2006-09-28 07:26:19 +0000 |
commit | eb1e6436906caf02f246f126823fa5ff6ddcf6c5 (patch) | |
tree | d3577c76f2c2ae74fb5da9269914cd7cf8519324 | |
parent | d746725744d7121f414e22a47ae2415fab24b499 (diff) | |
download | php-git-eb1e6436906caf02f246f126823fa5ff6ddcf6c5.tar.gz |
Fixed wrong pipe detection code
-rw-r--r-- | main/streams/plain_wrapper.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 4c86bae3c8..6da51946b1 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -243,10 +243,9 @@ PHPAPI php_stream *_php_stream_fopen_from_file(FILE *file, const char *mode STRE #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 |