Bug #18436 Updated: non blocking socket don't work
| From: | tgsupport at free dot fr | Date: | Fri, 19 Jul 2002 17:05:21 +0000 |
| Subject: | Bug #18436 Updated: non blocking socket don't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14646@lists.php.net to get a copy of this message | ||
ID: 18436
Updated by: tgsupport@free.fr
Reported By: tgsupport@free.fr
-Status: Feedback
+Status: Open
Bug Type: Sockets related
Operating System: Windows
PHP Version: 4CVS-2002-07-19
New Comment:
I donwload php4-200207190000.tar.gz in http://snaps.php.net
contain
/* $Id: network.c,v 1.51 2002/06/11 03:55:28 jason Exp $ */
/* $Id: fsock.c,v 1.98 2002/07/13 09:26:36 sander Exp $ */
Previous Comments:
------------------------------------------------------------------------
[2002-07-19 12:24:05] sniper@php.net
What are the CVS revisions for both main/network.c and
ext/standard/fsock.c you have?
------------------------------------------------------------------------
[2002-07-19 11:05:07] tgsupport@free.fr
Always the same problem describe http://bugs.php.net/bug.php?id=8722
modify network.c with
#ifdef PHP_WIN32
#include <windows.h>
#include <winsock.h>
#define O_RDONLY _O_RDONLY
#define EWOULDBLOCK WSAEWOULDBLOCK // Add
#undef errno // Add
#define errno (WSAGetLastError()) // Add
#include "win32/param.h"
#else
...
and fsock.c i remove the line #define EWOULDBLOCK WSAEWOULDBLOCK
and now it's work.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18436&edit=1