Skip to content

Commit cf19796

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Fix typo Simplify functions checks in m4
2 parents 51442a4 + e7fcc45 commit cf19796

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

Zend/Zend.m4

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,8 @@ AC_ARG_ENABLE([zend-signals],
306306
[ZEND_SIGNALS=$enableval],
307307
[ZEND_SIGNALS=yes])
308308
309-
AC_CHECK_FUNC(sigaction, [
310-
AC_DEFINE(HAVE_SIGACTION, 1, [Whether sigaction() is available])
311-
], [
312-
ZEND_SIGNALS=no
309+
AC_CHECK_FUNCS([sigaction], [], [
310+
ZEND_SIGNALS=no
313311
])
314312
if test "$ZEND_SIGNALS" = "yes"; then
315313
AC_DEFINE(ZEND_SIGNALS, 1, [Use zend signal handling])

ext/pcntl/config.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ PHP_ARG_ENABLE([pcntl],
44
[Enable pcntl support (CLI/CGI only)])])
55

66
if test "$PHP_PCNTL" != "no"; then
7-
AC_CHECK_FUNCS(fork, [ AC_DEFINE(HAVE_FORK,1,[ ]) ], [ AC_MSG_ERROR(pcntl: fork() not supported by this platform) ])
8-
AC_CHECK_FUNCS(waitpid, [ AC_DEFINE(HAVE_WAITPID,1,[ ]) ], [ AC_MSG_ERROR(pcntl: waitpid() not supported by this platform) ])
9-
AC_CHECK_FUNCS(sigaction, [ AC_DEFINE(HAVE_SIGACTION,1,[ ]) ], [ AC_MSG_ERROR(pcntl: sigaction() not supported by this platform) ])
7+
AC_CHECK_FUNCS([fork], [], [AC_MSG_ERROR([pcntl: fork() not supported by this platform])])
8+
AC_CHECK_FUNCS([waitpid], [], [AC_MSG_ERROR([pcntl: waitpid() not supported by this platform])])
9+
AC_CHECK_FUNCS([sigaction], [], [AC_MSG_ERROR([pcntl: sigaction() not supported by this platform])])
1010
AC_CHECK_FUNCS([getpriority setpriority wait3 wait4 sigwaitinfo sigtimedwait unshare])
1111

1212
AC_MSG_CHECKING([for siginfo_t])

win32/build/config.w32.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
#define HAVE_LIBM 1
8888
#undef HAVE_RINT
8989
#define SIZEOF_SHORT 2
90-
/* int and long are stll 32bit in 64bit compiles */
90+
/* int and long are still 32bit in 64bit compiles */
9191
#define SIZEOF_INT 4
9292
#define SIZEOF_LONG 4
9393
/* MSVC.6/NET don't allow 'long long' or know 'intmax_t' */

0 commit comments

Comments
 (0)