|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18436 non blocking socket don't work
Submitted: 2002-07-19 11:05 UTC Modified: 2002-07-19 16:37 UTC
From: tgsupport at free dot fr Assigned:
Status: Closed Package: Sockets related
PHP Version: 4CVS-2002-07-19 OS: Windows
Private report: No CVE-ID: None
 [2002-07-19 11:05 UTC] tgsupport at free dot fr
Always the same problem describe

modify network.c with

#ifdef PHP_WIN32
#include <windows.h>
#include <winsock.h>
#undef errno                           // Add
#define errno (WSAGetLastError())      // Add
#include "win32/param.h"

and fsock.c i remove the line #define EWOULDBLOCK WSAEWOULDBLOCK     

and now it's work. 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-19 12:24 UTC]
What are the CVS revisions for both main/network.c and
ext/standard/fsock.c you have?

 [2002-07-19 13:05 UTC] tgsupport at free dot fr
I donwload php4-200207190000.tar.gz in

/* $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 $ */
 [2002-07-19 16:37 UTC]
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at In case this was a documentation 
problem, the fix will show up soon at
In case this was a website problem, the change will show
up on the site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

Hopefully, this bug will not reappear

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 10:01:26 2024 UTC