mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-7.4'
* PHP-7.4: Remove obsolescent AC_HEADER_STDC and memcpy check
This commit is contained in:
commit
ac6b9b0b7f
8 changed files with 3 additions and 29 deletions
|
@ -29,7 +29,6 @@ AC_DEFUN([LIBZEND_BASIC_CHECKS],[
|
||||||
AC_REQUIRE([AC_PROG_YACC])
|
AC_REQUIRE([AC_PROG_YACC])
|
||||||
AC_REQUIRE([AC_PROG_CC])
|
AC_REQUIRE([AC_PROG_CC])
|
||||||
AC_REQUIRE([AC_PROG_CC_C_O])
|
AC_REQUIRE([AC_PROG_CC_C_O])
|
||||||
AC_REQUIRE([AC_HEADER_STDC])
|
|
||||||
|
|
||||||
LIBZEND_BISON_CHECK
|
LIBZEND_BISON_CHECK
|
||||||
|
|
||||||
|
@ -79,7 +78,7 @@ LIBZEND_CHECK_INT_TYPE(uint32_t)
|
||||||
|
|
||||||
dnl Checks for library functions.
|
dnl Checks for library functions.
|
||||||
AC_FUNC_ALLOCA
|
AC_FUNC_ALLOCA
|
||||||
AC_CHECK_FUNCS(memcpy strdup getpid kill strtod strtol finite fpclass sigsetjmp)
|
AC_CHECK_FUNCS(strdup getpid kill strtod strtol finite fpclass sigsetjmp)
|
||||||
|
|
||||||
AC_CHECK_DECLS([isfinite, isnan, isinf], [], [], [[#include <math.h>]])
|
AC_CHECK_DECLS([isfinite, isnan, isinf], [], [], [[#include <math.h>]])
|
||||||
|
|
||||||
|
|
|
@ -1030,10 +1030,8 @@ AC_DEFUN([_PHP_CHECK_SIZEOF], [
|
||||||
old_LDFLAGS=$LDFLAGS
|
old_LDFLAGS=$LDFLAGS
|
||||||
LDFLAGS=
|
LDFLAGS=
|
||||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
|
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
|
||||||
#if STDC_HEADERS
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#endif
|
|
||||||
#ifdef HAVE_INTTYPES_H
|
#ifdef HAVE_INTTYPES_H
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -1103,10 +1101,8 @@ AC_CACHE_VAL(ac_cv_type_in_addr_t,
|
||||||
changequote(<<,>>)dnl
|
changequote(<<,>>)dnl
|
||||||
<<in_addr_t[^a-zA-Z_0-9]>>dnl
|
<<in_addr_t[^a-zA-Z_0-9]>>dnl
|
||||||
changequote([,]), [#include <sys/types.h>
|
changequote([,]), [#include <sys/types.h>
|
||||||
#if STDC_HEADERS
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#endif
|
|
||||||
#ifdef HAVE_NETINET_IN_H
|
#ifdef HAVE_NETINET_IN_H
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif], ac_cv_type_in_addr_t=yes, ac_cv_type_in_addr_t=no)])dnl
|
#endif], ac_cv_type_in_addr_t=yes, ac_cv_type_in_addr_t=no)])dnl
|
||||||
|
|
|
@ -416,9 +416,6 @@ PHP_CHECK_FUNC(inet_aton, resolv, bind)
|
||||||
dnl Then headers.
|
dnl Then headers.
|
||||||
dnl -------------------------------------------------------------------------
|
dnl -------------------------------------------------------------------------
|
||||||
|
|
||||||
dnl Checks for header files.
|
|
||||||
AC_HEADER_STDC
|
|
||||||
|
|
||||||
dnl QNX requires unix.h to allow functions in libunix to work properly
|
dnl QNX requires unix.h to allow functions in libunix to work properly
|
||||||
AC_CHECK_HEADERS([ \
|
AC_CHECK_HEADERS([ \
|
||||||
inttypes.h \
|
inttypes.h \
|
||||||
|
@ -628,7 +625,6 @@ localtime_r \
|
||||||
lockf \
|
lockf \
|
||||||
lchown \
|
lchown \
|
||||||
lrand48 \
|
lrand48 \
|
||||||
memcpy \
|
|
||||||
memmove \
|
memmove \
|
||||||
mkstemp \
|
mkstemp \
|
||||||
mmap \
|
mmap \
|
||||||
|
|
|
@ -5,7 +5,6 @@ PHP_ARG_ENABLE(json, whether to enable JavaScript Object Serialization support,
|
||||||
|
|
||||||
if test "$PHP_JSON" != "no"; then
|
if test "$PHP_JSON" != "no"; then
|
||||||
AC_DEFINE([HAVE_JSON],1 ,[whether to enable JavaScript Object Serialization support])
|
AC_DEFINE([HAVE_JSON],1 ,[whether to enable JavaScript Object Serialization support])
|
||||||
AC_HEADER_STDC
|
|
||||||
|
|
||||||
PHP_NEW_EXTENSION(json,
|
PHP_NEW_EXTENSION(json,
|
||||||
json.c \
|
json.c \
|
||||||
|
|
|
@ -63,9 +63,6 @@
|
||||||
/* Define to the version of this package. */
|
/* Define to the version of this package. */
|
||||||
#undef PACKAGE_VERSION
|
#undef PACKAGE_VERSION
|
||||||
|
|
||||||
/* Define to 1 if you have the ANSI C header files. */
|
|
||||||
#undef STDC_HEADERS
|
|
||||||
|
|
||||||
/* Version number of package */
|
/* Version number of package */
|
||||||
#undef VERSION
|
#undef VERSION
|
||||||
|
|
||||||
|
|
|
@ -6,12 +6,11 @@ AC_DEFUN([XMLRPC_FUNCTION_CHECKS],[
|
||||||
AC_CHECK_FUNCS( \
|
AC_CHECK_FUNCS( \
|
||||||
strtoul strtoull snprintf \
|
strtoul strtoull snprintf \
|
||||||
strstr strpbrk strerror\
|
strstr strpbrk strerror\
|
||||||
memcpy memmove)
|
memmove)
|
||||||
|
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([XMLRPC_HEADER_CHECKS],[
|
AC_DEFUN([XMLRPC_HEADER_CHECKS],[
|
||||||
AC_HEADER_STDC
|
|
||||||
AC_CHECK_HEADERS(xmlparse.h xmltok.h strings.h)
|
AC_CHECK_HEADERS(xmlparse.h xmltok.h strings.h)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
12
main/php.h
12
main/php.h
|
@ -230,17 +230,7 @@ typedef unsigned int socklen_t;
|
||||||
#include "zend_hash.h"
|
#include "zend_hash.h"
|
||||||
#include "zend_alloc.h"
|
#include "zend_alloc.h"
|
||||||
#include "zend_stack.h"
|
#include "zend_stack.h"
|
||||||
|
#include <string.h>
|
||||||
#if STDC_HEADERS
|
|
||||||
# include <string.h>
|
|
||||||
#else
|
|
||||||
# ifndef HAVE_MEMCPY
|
|
||||||
# define memcpy(d, s, n) bcopy((s), (d), (n))
|
|
||||||
# endif
|
|
||||||
# ifndef HAVE_MEMMOVE
|
|
||||||
# define memmove(d, s, n) bcopy ((s), (d), (n))
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef HAVE_STRERROR
|
#ifndef HAVE_STRERROR
|
||||||
char *strerror(int);
|
char *strerror(int);
|
||||||
|
|
|
@ -69,13 +69,11 @@
|
||||||
#undef HAVE_STRUCT_STAT_ST_BLKSIZE
|
#undef HAVE_STRUCT_STAT_ST_BLKSIZE
|
||||||
#undef HAVE_STRUCT_STAT_ST_BLOCKS
|
#undef HAVE_STRUCT_STAT_ST_BLOCKS
|
||||||
#define HAVE_STRUCT_STAT_ST_RDEV 1
|
#define HAVE_STRUCT_STAT_ST_RDEV 1
|
||||||
#define STDC_HEADERS 1
|
|
||||||
#define REGEX 1
|
#define REGEX 1
|
||||||
#define HSREGEX 1
|
#define HSREGEX 1
|
||||||
#define HAVE_GCVT 1
|
#define HAVE_GCVT 1
|
||||||
#define HAVE_GETLOGIN 1
|
#define HAVE_GETLOGIN 1
|
||||||
#define HAVE_GETTIMEOFDAY 1
|
#define HAVE_GETTIMEOFDAY 1
|
||||||
#define HAVE_MEMCPY 1
|
|
||||||
#define HAVE_MEMMOVE 1
|
#define HAVE_MEMMOVE 1
|
||||||
#define HAVE_PUTENV 1
|
#define HAVE_PUTENV 1
|
||||||
#define HAVE_REGCOMP 1
|
#define HAVE_REGCOMP 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue