#49447 [Opn->Asn]: php engine need to correctly check for socket API return status on windows
| From: | srinatar@php.net | Date: | Thu, 03 Sep 2009 01:36:26 +0000 |
| Subject: | #49447 [Opn->Asn]: php engine need to correctly check for socket API return status on windows | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141886@lists.php.net to get a copy of this message | ||
ID: 49447
Updated by: srinatar@php.net
Reported By: sriram dot natarajan at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: Sockets related
Operating System: windows xp
PHP Version: 5.3.0
-Assigned To:
+Assigned To: srinatar
Previous Comments:
------------------------------------------------------------------------
[2009-09-03 01:36:03] sriram dot natarajan at gmail dot com
Description:
------------
Unlike bsd sockets, Win32 Socket API does not return -1 on failure for
most of the common socket api calls like bind, accept, connect etc. in
fact, the error status is another integer with numbers like 10035 etc.
so, checking for returns status on these socket API's like -1 or <= 0
is wrong.
i noticed this issue while debugging another problem on windows. hence,
filing this bug to track this issue . checking for correct error status
on these API is important during trouble shooting scenarios.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49447&edit=1