php.net |  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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tgsupport at free dot fr
New email:
PHP Version: OS:

 

 [2002-07-19 11:05 UTC] tgsupport at free dot 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. 

Patches

Pull Requests

History

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

Hopefully, this bug will not reappear

-jason
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 11:01:30 2024 UTC