ID: 49447 Updated by: srina...@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