1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Check ext/pcntl required functions with for loop (#14302)

This omits defining redundant HAVE_<function> symbols since these are
used unconditionally in ext/pcntl.

* HAVE_FORK is defined via ext/standard/config.m4
* HAVE_SIGACTION is defined via Zend.m4
* HAVE_WAITPID symbol is removed
This commit is contained in:
Peter Kokot
2024-06-07 22:49:02 +02:00
committed by GitHub
parent 51379d66ec
commit cfb739585f
2 changed files with 5 additions and 2 deletions

View File

@@ -130,6 +130,7 @@ PHP 8.4 INTERNALS UPGRADE NOTES
- Symbols HAVE_DLOPEN and HAVE_DLSYM have been removed.
- Symbol HAVE_MYSQL has been removed.
- Symbol HAVE_PDO_SQLITELIB has been removed.
- Symbol HAVE_WAITPID has been removed.
- M4 macro PHP_DEFINE (atomic includes) removed (use AC_DEFINE and config.h).
- M4 macro PHP_WITH_SHARED has been removed (use PHP_ARG_WITH).
- M4 macro PHP_STRUCT_FLOCK has been removed (use AC_CHECK_TYPES).

View File

@@ -4,8 +4,10 @@ PHP_ARG_ENABLE([pcntl],
[Enable pcntl support (CLI/CGI only)])])
if test "$PHP_PCNTL" != "no"; then
AC_CHECK_FUNCS([fork waitpid sigaction],,
[AC_MSG_ERROR([ext/pcntl: required function $ac_func() not found.])])
for function in fork sigaction waitpid; do
AC_CHECK_FUNC([$function],,
[AC_MSG_ERROR([ext/pcntl: required function $function() not found.])])
done
AC_CHECK_FUNCS(m4_normalize([
forkx