diff --git a/ext/phar/phar.c b/ext/phar/phar.c index e7a61f277e9..2add0135740 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -2180,9 +2180,9 @@ char *phar_fix_filepath(char *path, size_t *new_len, int use_cwd) /* {{{ */ ptr_length = ptr - tok; last_time: if (IS_DIRECTORY_UP(tok, ptr_length)) { -#define PREVIOUS newpath[newpath_len - 1] + const char previous = newpath[newpath_len - 1]; - while (newpath_len > 1 && !IS_BACKSLASH(PREVIOUS)) { + while (newpath_len > 1 && !IS_BACKSLASH(previous)) { newpath_len--; }