From: Nikita Popov Date: Fri, 23 Aug 2019 14:18:15 +0000 (+0200) Subject: Fix noalias violation in select call X-Git-Tag: php-7.4.0RC1~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7910f128e296ef66a660935d652fd568941665fc;p=php Fix noalias violation in select call --- diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 4b2af96a5e..0700e79b15 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -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; }