Skip to content

Commit aff9765

Browse files
committed
- Windows part
1 parent 7debfa2 commit aff9765

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main/network.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,10 @@ PHPAPI int php_poll2(php_pollfd *ufds, unsigned int nfds, int timeout)
11471147
tv.tv_sec = timeout / 1000;
11481148
tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000;
11491149
}
1150-
#ifndef PHP_WIN32
1150+
/* Reseting/initializing */
1151+
#ifdef PHP_WIN32
1152+
WSASetLastError(0);
1153+
#else
11511154
errno = 0;
11521155
#endif
11531156
n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL);

0 commit comments

Comments
 (0)