summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-09-04 05:32:25 +0200
committerNikita Popov <nikita.ppv@gmail.com>2018-09-04 05:32:25 +0200
commitf1f39d7ed7fb6f6aaa2edea165aae4bc58a09de7 (patch)
treedcf4178cb1fc35bc09f1d6f00dfb7c3035a2880e
parent870d893d0bd3f4055ec1d61058aafdadf666b117 (diff)
downloadphp-git-f1f39d7ed7fb6f6aaa2edea165aae4bc58a09de7.tar.gz
Fix parenthesis warning
-rw-r--r--ext/phar/phar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/phar/phar.c b/ext/phar/phar.c
index e053b6dd66..414acc78f7 100644
--- a/ext/phar/phar.c
+++ b/ext/phar/phar.c
@@ -1843,7 +1843,7 @@ static int phar_check_str(const char *fname, const char *ext_str, int ext_len, i
pos = strstr(ext_str, ".phar");
if (!pos
- || pos != ext_str && (*(pos - 1) == '/')
+ || (pos != ext_str && (*(pos - 1) == '/'))
|| (ext_len - (pos - ext_str)) < 5
|| !(pos += 5)
|| !(*pos == '\0' || *pos == '/' || *pos == '.')) {