cvs: php-src /main/streams plain_wrapper.c
| From: | Dmitry Stogov | Date: | Tue, 22 Aug 2006 06:15:45 +0000 |
| Subject: | cvs: php-src /main/streams plain_wrapper.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-40049@lists.php.net to get a copy of this message | ||
dmitry Tue Aug 22 06:15:45 2006 UTC
Modified files:
/php-src/main/streams plain_wrapper.c
Log:
Fixed bug #38488 (Access to "php://stdin" and family crashes PHP on win32)
http://cvs.php.net/viewvc.cgi/php-src/main/streams/plain_wrapper.c?r1=1.67&r2=1.68&diff_format=u
Index: php-src/main/streams/plain_wrapper.c
diff -u php-src/main/streams/plain_wrapper.c:1.67 php-src/main/streams/plain_wrapper.c:1.68
--- php-src/main/streams/plain_wrapper.c:1.67 Mon Jun 5 22:39:10 2006
+++ php-src/main/streams/plain_wrapper.c Tue Aug 22 06:15:45 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: plain_wrapper.c,v 1.67 2006/06/05 22:39:10 tony2001 Exp $ */
+/* $Id: plain_wrapper.c,v 1.68 2006/08/22 06:15:45 dmitry Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -194,10 +194,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