]> granicus.if.org Git - php/commitdiff
Fix noalias violation in select call
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 23 Aug 2019 14:18:15 +0000 (16:18 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 23 Aug 2019 14:18:59 +0000 (16:18 +0200)
sapi/cli/php_cli.c

index 4b2af96a5ede04e4ea152bc8ef860b865d41f43c..0700e79b153b8296443364924ec0ea11a542ee64 100644 (file)
@@ -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;
 }