summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2019-06-30 23:59:47 +0200
committerPeter Kokot <peterkokot@gmail.com>2019-06-30 23:59:47 +0200
commit98d0892dd8c8096144ea107f207d52cbcf39f20d (patch)
tree26f5accb28504108154c1d400faaefd339140578
parentb576e3f871dd740d078484330362c8b0ab07d006 (diff)
parent9a3c8e51e3ee33a4f9a414f79af09489273e0b92 (diff)
downloadphp-git-98d0892dd8c8096144ea107f207d52cbcf39f20d.tar.gz
Merge branch 'PHP-7.4'
* PHP-7.4: Sync functions checks
-rw-r--r--TSRM/tsrm.m42
-rw-r--r--Zend/Zend.m42
-rw-r--r--configure.ac10
-rw-r--r--ext/opcache/config.m44
-rw-r--r--ext/pcntl/config.m42
-rw-r--r--ext/posix/config.m42
-rw-r--r--ext/sockets/config.m42
-rw-r--r--ext/standard/config.m44
8 files changed, 15 insertions, 13 deletions
diff --git a/TSRM/tsrm.m4 b/TSRM/tsrm.m4
index 8cc53a15af..92a9f39921 100644
--- a/TSRM/tsrm.m4
+++ b/TSRM/tsrm.m4
@@ -6,8 +6,6 @@ dnl
AC_DEFUN([TSRM_BASIC_CHECKS],[
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_PROG_RANLIB])dnl
-
-AC_CHECK_FUNCS(sigprocmask)
])
dnl
diff --git a/Zend/Zend.m4 b/Zend/Zend.m4
index 6fd42a6233..c1ddab5b10 100644
--- a/Zend/Zend.m4
+++ b/Zend/Zend.m4
@@ -146,7 +146,7 @@ _LT_AC_TRY_DLOPEN_SELF([
])
dnl Checks for library functions.
-AC_CHECK_FUNCS(getpid kill finite fpclass sigsetjmp)
+AC_CHECK_FUNCS(getpid kill finite sigsetjmp)
AC_CHECK_DECLS([isfinite, isnan, isinf], [], [], [[#include <math.h>]])
diff --git a/configure.ac b/configure.ac
index 663a2f4e66..7fe47dab3c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -593,23 +593,26 @@ cuserid \
crypt \
explicit_memset \
flock \
+fpclass \
ftok \
funopen \
gai_strerror \
gcvt \
+getcwd \
getloadavg \
getlogin \
getprotobyname \
getprotobynumber \
getservbyname \
getservbyport \
-gethostname \
getrusage \
gettimeofday \
gmtime_r \
getpwnam_r \
getgrnam_r \
getpwuid_r \
+getwd \
+glob \
grantpt \
inet_ntoa \
inet_ntop \
@@ -620,9 +623,11 @@ localtime_r \
lockf \
lchown \
lrand48 \
+mbrlen \
memmove \
mkstemp \
mmap \
+nice \
nl_langinfo \
poll \
ptsname \
@@ -633,10 +638,10 @@ rand_r \
scandir \
setitimer \
setenv \
-setpgid \
setsockopt \
setvbuf \
shutdown \
+sigprocmask \
sin \
srand48 \
srandom \
@@ -646,6 +651,7 @@ std_syslog \
strcasecmp \
strdup \
strerror \
+strfmon \
strnlen \
strptime \
strtok_r \
diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4
index 3baa3eec3c..bf66d2c4d8 100644
--- a/ext/opcache/config.m4
+++ b/ext/opcache/config.m4
@@ -88,9 +88,7 @@ if test "$PHP_OPCACHE" != "no"; then
fi
- AC_CHECK_FUNC(mprotect,[
- AC_DEFINE(HAVE_MPROTECT, 1, [Define if you have mprotect() function])
- ])
+ AC_CHECK_FUNCS([mprotect])
AC_MSG_CHECKING(for sysvipc shared memory support)
AC_RUN_IFELSE([AC_LANG_SOURCE([[
diff --git a/ext/pcntl/config.m4 b/ext/pcntl/config.m4
index bf7f3064b4..9b6957230d 100644
--- a/ext/pcntl/config.m4
+++ b/ext/pcntl/config.m4
@@ -7,7 +7,7 @@ if test "$PHP_PCNTL" != "no"; then
AC_CHECK_FUNCS(fork, [ AC_DEFINE(HAVE_FORK,1,[ ]) ], [ AC_MSG_ERROR(pcntl: fork() not supported by this platform) ])
AC_CHECK_FUNCS(waitpid, [ AC_DEFINE(HAVE_WAITPID,1,[ ]) ], [ AC_MSG_ERROR(pcntl: waitpid() not supported by this platform) ])
AC_CHECK_FUNCS(sigaction, [ AC_DEFINE(HAVE_SIGACTION,1,[ ]) ], [ AC_MSG_ERROR(pcntl: sigaction() not supported by this platform) ])
- AC_CHECK_FUNCS([getpriority setpriority wait3 wait4 sigprocmask sigwaitinfo sigtimedwait unshare])
+ AC_CHECK_FUNCS([getpriority setpriority wait3 wait4 sigwaitinfo sigtimedwait unshare])
AC_MSG_CHECKING([for siginfo_t])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
diff --git a/ext/posix/config.m4 b/ext/posix/config.m4
index 9beea518be..e91041188a 100644
--- a/ext/posix/config.m4
+++ b/ext/posix/config.m4
@@ -10,7 +10,7 @@ if test "$PHP_POSIX" = "yes"; then
AC_CHECK_HEADERS([sys/mkdev.h sys/sysmacros.h])
- AC_CHECK_FUNCS(seteuid setegid setsid getsid setpgid getpgid ctermid mkfifo mknod setrlimit getrlimit getlogin getgroups makedev initgroups getpwuid_r getgrgid_r)
+ AC_CHECK_FUNCS(seteuid setegid setsid getsid getpgid ctermid mkfifo mknod setrlimit getrlimit getgroups makedev initgroups getgrgid_r)
AC_MSG_CHECKING([for working ttyname_r() implementation])
AC_RUN_IFELSE([AC_LANG_SOURCE([[
diff --git a/ext/sockets/config.m4 b/ext/sockets/config.m4
index 71cebdb3e2..6f5b5ba29f 100644
--- a/ext/sockets/config.m4
+++ b/ext/sockets/config.m4
@@ -16,7 +16,7 @@ if test "$PHP_SOCKETS" != "no"; then
AC_DEFINE(HAVE_CMSGHDR,1,[Whether you have struct cmsghdr])
fi
- AC_CHECK_FUNCS([hstrerror socketpair if_nametoindex if_indextoname])
+ AC_CHECK_FUNCS([hstrerror if_nametoindex if_indextoname])
AC_CHECK_HEADERS([netinet/tcp.h sys/un.h sys/sockio.h])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <sys/types.h>
diff --git a/ext/standard/config.m4 b/ext/standard/config.m4
index b0ec90900b..9f85ec2b70 100644
--- a/ext/standard/config.m4
+++ b/ext/standard/config.m4
@@ -286,7 +286,7 @@ dnl Check for available functions
dnl
dnl log2 could be used to improve the log function, however it requires C99. The
dnl check for log2 should be turned on, as soon as we support C99.
-AC_CHECK_FUNCS(getcwd getwd asinh acosh atanh log1p hypot glob strfmon nice fpclass mempcpy strpncpy)
+AC_CHECK_FUNCS(asinh acosh atanh log1p hypot)
AC_FUNC_FNMATCH
dnl
@@ -376,7 +376,7 @@ dnl
dnl Check for i18n capabilities
dnl
AC_CHECK_HEADERS([wchar.h])
-AC_CHECK_FUNCS([mblen mbrlen mbsinit])
+AC_CHECK_FUNCS([mblen])
AC_CACHE_CHECK([for mbstate_t], [ac_cv_type_mbstate_t],[
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#ifdef HAVE_WCHAR_H