From: Xinchen Hui Date: Tue, 11 Aug 2015 13:43:38 +0000 (+0800) Subject: suggest parentheses around ‘&&’ within ‘||’ X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f2c0e045132de51473b643c68e07e5b2c2e218b;p=php suggest parentheses around ‘&&’ within ‘||’ --- diff --git a/main/streams/xp_socket.c b/main/streams/xp_socket.c index da80a0a850..e88bb91208 100644 --- a/main/streams/xp_socket.c +++ b/main/streams/xp_socket.c @@ -326,7 +326,7 @@ static int php_sockop_set_option(php_stream *stream, int option, int value, void ret = recv(sock->socket, &buf, sizeof(buf), MSG_PEEK); err = php_socket_errno(); if (0 == ret || /* the counterpart did properly shutdown*/ - 0 > ret && err != EWOULDBLOCK && err != EAGAIN) { /* there was an unrecoverable error */ + (0 > ret && err != EWOULDBLOCK && err != EAGAIN)) { /* there was an unrecoverable error */ alive = 0; } }