dmitry Thu Sep 28 07:26:19 2006 UTC Modified files: /php-src/main/streams plain_wrapper.c Log: Fixed wrong pipe detection code http://cvs.php.net/viewvc.cgi/php-src/main/streams/plain_wrapper.c?r1=1.71&r2=1.72&diff_format=u Index: php-src/main/streams/plain_wrapper.c diff -u php-src/main/streams/plain_wrapper.c:1.71 php-src/main/streams/plain_wrapper.c:1.72 --- php-src/main/streams/plain_wrapper.c:1.71 Sun Sep 24 20:33:14 2006 +++ php-src/main/streams/plain_wrapper.c Thu Sep 28 07:26:19 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: plain_wrapper.c,v 1.71 2006/09/24 20:33:14 pollita Exp $ */ +/* $Id: plain_wrapper.c,v 1.72 2006/09/28 07:26:19 dmitry Exp $ */ #include "php.h" #include "php_globals.h" @@ -243,10 +243,9 @@ #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
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php