Skip to content

Commit d01566f

Browse files
outtersgnikic
authored andcommitted
opcache config.m4: Use = for comparison
HAVE_OPCACHE_FILE_CACHE and HAVE_HUGE_CODE_PAGES where not correctly set on old systems (e.g. FreeBSD 8), due to a PHPism in config.m4. Using the standard shell operator = instead of == makes the configure script produce the correct output.
1 parent 10b2172 commit d01566f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/config.m4

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ PHP_ARG_ENABLE(huge-code-pages, whether to enable copying PHP CODE pages into HU
1414

1515
if test "$PHP_OPCACHE" != "no"; then
1616

17-
if test "$PHP_OPCACHE_FILE" == "yes"; then
17+
if test "$PHP_OPCACHE_FILE" = "yes"; then
1818
AC_DEFINE(HAVE_OPCACHE_FILE_CACHE, 1, [Define to enable file based caching (experimental)])
1919
fi
2020

21-
if test "$PHP_HUGE_CODE_PAGES" == "yes"; then
21+
if test "$PHP_HUGE_CODE_PAGES" = "yes"; then
2222
AC_DEFINE(HAVE_HUGE_CODE_PAGES, 1, [Define to enable copying PHP CODE pages into HUGE PAGES (experimental)])
2323
fi
2424

0 commit comments

Comments
 (0)