From: Xinchen Hui Date: Fri, 25 Nov 2011 07:50:18 +0000 (+0000) Subject: warning: suggest parentheses around && within || X-Git-Tag: php-5.3.9RC3~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa5ce0b58d4ae8df6e5a80fa1e5f7f2d9b895acb;p=php warning: suggest parentheses around && within || --- diff --git a/ext/standard/html.c b/ext/standard/html.c index f543c3e8c7..3664e7d9a6 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -1020,8 +1020,8 @@ PHPAPI char *php_unescape_html_entities(unsigned char *old, int oldlen, int *new code = strtol(p + 2, &next, 10); } - if (code == '\'' && !(quote_style & ENT_HTML_QUOTE_SINGLE) || - code == '"' && !(quote_style & ENT_HTML_QUOTE_DOUBLE)) { + if ((code == '\'' && !(quote_style & ENT_HTML_QUOTE_SINGLE)) || + (code == '"' && !(quote_style & ENT_HTML_QUOTE_DOUBLE))) { invalid_code = 1; }