com php-src: Remove PHP_DECLARED_TIMEZONE and HAVE_DE CLARED_TIMEZONE: acinclude.m4 configure.ac main /php.h
| From: | Peter Kokot | Date: | Thu, 28 Feb 2019 20:17:49 +0000 |
| Subject: | com php-src: Remove PHP_DECLARED_TIMEZONE and HAVE_DE CLARED_TIMEZONE: acinclude.m4 configure.ac main /php.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104914@lists.php.net to get a copy of this message | ||
Commit: f64ae64f52caf602720cd87061673b378c0c4158
Author: Peter Kokot <peterkokot@gmail.com> Wed, 27 Feb 2019 22:36:11 +0100
Parents: ff315098f44cfe6483fd55eb434615c1f521eb10
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f64ae64f52caf602720cd87061673b378c0c4158
Log:
Remove PHP_DECLARED_TIMEZONE and HAVE_DECLARED_TIMEZONE
The HAVE_DECLARED_TIMEZONE symbol usage has been introduced in
2fd8cbff2ac301a90fc417bff206bd0a65e8692c
and then removed via
667a9b9bce87e422d9b092ce23f1b536c8fd4ece.
Changed paths:
M acinclude.m4
M configure.ac
M main/php.h
Diff:
diff --git a/acinclude.m4 b/acinclude.m4
index c6f52a0..2c6f4b7 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1461,29 +1461,6 @@ AC_DEFUN([PHP_SOCKADDR_CHECKS], [
])
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
AC_DEFUN([PHP_EBCDIC], [
diff --git a/configure.ac b/configure.ac
index 9a4b779..57705d2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
diff --git a/main/php.h b/main/php.h
index 161f955..317a048 100644
--- a/main/php.h
+++ b/main/php.h
@@ -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