Skip to content

Commit 74f3d38

Browse files
committed
Add test for stream_select with null timeout in coroutine context
1 parent 2356d96 commit 74f3d38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

win32/select.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ PHPAPI int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *e
101101
if (n_handles == 0) {
102102
/* plain sockets only - let winsock handle the whole thing */
103103
// For win32 we support only sockets in this function
104-
if (ZEND_ASYNC_IS_ACTIVE && (tv->tv_sec > 0 || tv->tv_usec > 0)) {
104+
if (ZEND_ASYNC_IS_ACTIVE && (tv == NULL || tv->tv_sec > 0 || tv->tv_usec > 0)) {
105105
return php_select_async(max_fd, rfds, wfds, efds, tv);
106106
}
107107
return select(-1, rfds, wfds, efds, tv);

0 commit comments

Comments
 (0)