Skip to content

Commit 08addfe

Browse files
committed
Merge branch 'PHP-7.1' into PHP-7.2
2 parents fcf78df + f1f39d7 commit 08addfe

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

ext/phar/phar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1843,7 +1843,7 @@ static int phar_check_str(const char *fname, const char *ext_str, int ext_len, i
18431843
pos = strstr(ext_str, ".phar");
18441844

18451845
if (!pos
1846-
|| pos != ext_str && (*(pos - 1) == '/')
1846+
|| (pos != ext_str && (*(pos - 1) == '/'))
18471847
|| (ext_len - (pos - ext_str)) < 5
18481848
|| !(pos += 5)
18491849
|| !(*pos == '\0' || *pos == '/' || *pos == '.')) {

ext/posix/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if test "$PHP_POSIX" = "yes"; then
99
AC_DEFINE(HAVE_POSIX, 1, [whether to include POSIX-like functions])
1010
PHP_NEW_EXTENSION(posix, posix.c, $ext_shared)
1111

12-
AC_CHECK_HEADERS(sys/mkdev.h)
12+
AC_CHECK_HEADERS([sys/mkdev.h sys/sysmacros.h])
1313

1414
AC_CHECK_FUNCS(seteuid setegid setsid getsid setpgid getpgid ctermid mkfifo mknod setrlimit getrlimit getlogin getgroups makedev initgroups getpwuid_r getgrgid_r)
1515

ext/posix/posix.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
#if HAVE_SYS_MKDEV_H
5353
# include <sys/mkdev.h>
5454
#endif
55+
#if HAVE_SYS_SYSMACROS_H
56+
# include <sys/sysmacros.h>
57+
#endif
5558

5659
ZEND_DECLARE_MODULE_GLOBALS(posix)
5760
static PHP_MINFO_FUNCTION(posix);

0 commit comments

Comments
 (0)