Skip to content

Commit ef8e792

Browse files
committed
Autotools: Quote M4 macro arguments
- AC_CHECK_TYPES - AC_REPLACE_FUNCS - PHP_HELP_SEPARATOR needs here double quotes as content contains '[' and ']' characters
1 parent a1b45bb commit ef8e792

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

configure.ac

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ AC_STRUCT_TIMEZONE
458458
PHP_MISSING_TIME_R_DECL
459459

460460
AC_CHECK_TYPES([struct flock],,,[#include <fcntl.h>])
461-
AC_CHECK_TYPES(socklen_t, [], [], [
461+
AC_CHECK_TYPES([socklen_t], [], [], [
462462
#ifdef HAVE_SYS_TYPES_H
463463
# include <sys/types.h>
464464
#endif
@@ -708,7 +708,7 @@ AS_VAR_IF([php_cv_func_copy_file_range], [yes],
708708
[AC_DEFINE([HAVE_COPY_FILE_RANGE], [1],
709709
[Define to 1 if you have the 'copy_file_range' function.])])
710710

711-
AC_REPLACE_FUNCS(strlcat strlcpy explicit_bzero getopt)
711+
AC_REPLACE_FUNCS([strlcat strlcpy explicit_bzero getopt])
712712
AC_FUNC_ALLOCA
713713
PHP_TIME_R_TYPE
714714

@@ -1071,7 +1071,7 @@ PHP_ARG_ENABLE([undefined-sanitizer],,
10711071
dnl Extension configuration.
10721072
dnl ----------------------------------------------------------------------------
10731073

1074-
PHP_HELP_SEPARATOR([Extensions:
1074+
PHP_HELP_SEPARATOR([[Extensions:
10751075
10761076
--with-EXTENSION=[shared[,PATH]]
10771077
@@ -1081,7 +1081,7 @@ PHP_HELP_SEPARATOR([Extensions:
10811081
10821082
o Builds the foobar extension as shared extension.
10831083
o foobar package install prefix is /usr/local/foobar/
1084-
])
1084+
]])
10851085

10861086
PHP_CONFIGURE_PART(Configuring extensions)
10871087

ext/ffi/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if test "$PHP_FFI" != "no"; then
1111

1212
AC_DEFINE(HAVE_FFI, 1, [Have ffi support])
1313

14-
AC_CHECK_TYPES(long double)
14+
AC_CHECK_TYPES([long double])
1515

1616
AC_DEFUN([PHP_FFI_CHECK_DECL],
1717
[AC_CHECK_DECL([$1],

0 commit comments

Comments
 (0)