mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix noalias violation in select call
This commit is contained in:
parent
6534ff13cd
commit
7910f128e2
1 changed files with 2 additions and 3 deletions
|
@ -236,19 +236,18 @@ static void print_extensions(void) /* {{{ */
|
|||
|
||||
static inline int sapi_cli_select(php_socket_t fd)
|
||||
{
|
||||
fd_set wfd, dfd;
|
||||
fd_set wfd;
|
||||
struct timeval tv;
|
||||
int ret;
|
||||
|
||||
FD_ZERO(&wfd);
|
||||
FD_ZERO(&dfd);
|
||||
|
||||
PHP_SAFE_FD_SET(fd, &wfd);
|
||||
|
||||
tv.tv_sec = (long)FG(default_socket_timeout);
|
||||
tv.tv_usec = 0;
|
||||
|
||||
ret = php_select(fd+1, &dfd, &wfd, &dfd, &tv);
|
||||
ret = php_select(fd+1, NULL, &wfd, NULL, &tv);
|
||||
|
||||
return ret != -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue