dmitry Thu Sep 28 07:26:02 2006 UTC
Modified files: (Branch: PHP_5_2)
/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.52.2.6.2.6&r2=1.52.2.6.2.7&diff_format=u
Index: php-src/main/streams/plain_wrapper.c
diff -u php-src/main/streams/plain_wrapper.c:1.52.2.6.2.6
php-src/main/streams/plain_wrapper.c:1.52.2.6.2.7
--- php-src/main/streams/plain_wrapper.c:1.52.2.6.2.6 Tue Sep 12 15:47:25 2006
+++ php-src/main/streams/plain_wrapper.c Thu Sep 28 07:26:02 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: plain_wrapper.c,v 1.52.2.6.2.6 2006/09/12 15:47:25 iliaa Exp $ */
+/* $Id: plain_wrapper.c,v 1.52.2.6.2.7 2006/09/28 07:26:02 dmitry Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -242,10 +242,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