]> granicus.if.org Git - php/commitdiff
Remove PHP_DECLARED_TIMEZONE and HAVE_DECLARED_TIMEZONE
authorPeter Kokot <peterkokot@gmail.com>
Wed, 27 Feb 2019 21:36:11 +0000 (22:36 +0100)
committerPeter Kokot <peterkokot@gmail.com>
Thu, 28 Feb 2019 20:17:49 +0000 (21:17 +0100)
The HAVE_DECLARED_TIMEZONE symbol usage has been introduced in
2fd8cbff2ac301a90fc417bff206bd0a65e8692c
and then removed via
667a9b9bce87e422d9b092ce23f1b536c8fd4ece.

acinclude.m4
configure.ac
main/php.h

index c6f52a0bd236be9644f6a68baf9ee614224d4fce..2c6f4b7dc8535d138d9d6323abf666facca0a07d 100644 (file)
@@ -1460,29 +1460,6 @@ AC_DEFUN([PHP_SOCKADDR_CHECKS], [
   fi
 ])
 
-dnl
-dnl PHP_DECLARED_TIMEZONE
-dnl
-AC_DEFUN([PHP_DECLARED_TIMEZONE],[
-  AC_CACHE_CHECK(for declared timezone, ac_cv_declared_timezone,[
-    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
-#include <sys/types.h>
-#include <time.h>
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
-]],[[
-    time_t foo = (time_t) timezone;
-]])],[
-  ac_cv_declared_timezone=yes
-],[
-  ac_cv_declared_timezone=no
-])])
-  if test "$ac_cv_declared_timezone" = "yes"; then
-    AC_DEFINE(HAVE_DECLARED_TIMEZONE, 1, [Whether system headers declare timezone])
-  fi
-])
-
 dnl
 dnl PHP_EBCDIC
 dnl
index 9a4b77995a8c40b01db5dcb7c9d1dc67d69d02e3..57705d294a85eb362e471f53de46020b4fd36410 100644 (file)
@@ -735,7 +735,6 @@ fi
 
 AC_REPLACE_FUNCS(strlcat strlcpy explicit_bzero getopt)
 AC_FUNC_ALLOCA
-PHP_DECLARED_TIMEZONE
 PHP_TIME_R_TYPE
 PHP_READDIR_R_TYPE
 PHP_CHECK_IN_ADDR_T
index 161f955303b280a3ee697da85cbce91a8418d490..317a0484057d9f05b0b7c4a2d440cd78e7066df9 100644 (file)
@@ -80,7 +80,6 @@
 /* Windows specific defines */
 #ifdef PHP_WIN32
 # define PHP_PROG_SENDMAIL             "Built in mailer"
-# define HAVE_DECLARED_TIMEZONE
 # define WIN32_LEAN_AND_MEAN
 # define NOOPENFILE