Fixed error handling for ext/sockets under win
authorAnatol Belski <ab@php.net>
Thu, 16 May 2013 17:23:31 +0000 (19:23 +0200)
committerAnatol Belski <ab@php.net>
Thu, 16 May 2013 17:23:31 +0000 (19:23 +0200)
commit8dec06ea2afbe577191b13152e8f4622a80aeb0c
tree7c2ed4b55409a939bc03603b72466c43c7752cf6
parentd82704b6779cf54e9c8bd16ecc78c612892b4c9d
Fixed error handling for ext/sockets under win

WSAGetLastError() must be the very next call after a socket
function had an invalid return. Any function call inbetween
will clear the error information.
ext/sockets/sockets.c