Skip to content

Commit 0aadc7e

Browse files
authored
Fix string concatenation in ZEND_JIT_SRC variable (php#13740)
The += operator only works in bash shells and when using /bin/sh, for example in Alpine Linux, the warning is thrown during configuration step ./configure: line 51396: ZEND_JIT_SRC+= jit/ir/ir_disasm.c: not found
1 parent a648365 commit 0aadc7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/config.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ if test "$PHP_OPCACHE" != "no"; then
8787
AC_DEFINE([HAVE_CAPSTONE], [1], [Capstone is available])
8888
PHP_EVAL_LIBLINE($CAPSTONE_LIBS, OPCACHE_SHARED_LIBADD)
8989
PHP_EVAL_INCLINE($CAPSTONE_CFLAGS)
90-
ZEND_JIT_SRC+=" jit/ir/ir_disasm.c"
90+
ZEND_JIT_SRC="$ZEND_JIT_SRC jit/ir/ir_disasm.c"
9191
],[
9292
AC_MSG_ERROR([capstone >= 3.0 required but not found])
9393
])

0 commit comments

Comments
 (0)