From:             sriram dot natarajan at gmail dot com
Operating system: windows xp
PHP version:      5.3.0
PHP Bug Type:     Sockets related
Bug description:  php engine need to correctly check for socket API return 
status on windows

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 bug report at http://bugs.php.net/?id=49447&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=49447&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=49447&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=49447&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=49447&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=49447&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=49447&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=49447&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=49447&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=49447&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=49447&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=49447&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=49447&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=49447&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=49447&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=49447&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=49447&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=49447&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=49447&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=49447&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=49447&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=49447&r=mysqlcfg

Reply via email to