summaryrefslogtreecommitdiff
path: root/ext/date/php_date.h
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2019-03-13 23:14:37 +0100
committerPeter Kokot <peterkokot@gmail.com>2019-03-14 19:42:29 +0100
commit3a857852a8dada5e60ba6d028878ecd6224b9c5d (patch)
tree4ac168864977bf7d59ab2128560da516bcbc7525 /ext/date/php_date.h
parenta59881fa04f0ce0054675de907401d28b2b205f2 (diff)
downloadphp-git-3a857852a8dada5e60ba6d028878ecd6224b9c5d.tar.gz
Remove HAVE_STRFTIME
Function strftime is part of the C89 standard [1] and current systems don't need to check for its presence anymore. Additionally, checks for strftime function in tests have been removed since the PHP strftime function is now always available. 1: https://port70.net/~nsz/c/c89/c89-draft.html
Diffstat (limited to 'ext/date/php_date.h')
-rw-r--r--ext/date/php_date.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/date/php_date.h b/ext/date/php_date.h
index 1d8a378686..cadb99ba0c 100644
--- a/ext/date/php_date.h
+++ b/ext/date/php_date.h
@@ -37,12 +37,8 @@ PHP_FUNCTION(mktime);
PHP_FUNCTION(gmmktime);
PHP_FUNCTION(checkdate);
-
-#ifdef HAVE_STRFTIME
PHP_FUNCTION(strftime);
PHP_FUNCTION(gmstrftime);
-#endif
-
PHP_FUNCTION(time);
PHP_FUNCTION(localtime);
PHP_FUNCTION(getdate);
@@ -207,10 +203,10 @@ ZEND_END_MODULE_GLOBALS(date)
PHPAPI zend_long php_parse_date(char *string, zend_long *now);
PHPAPI void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gmt);
PHPAPI int php_idate(char format, time_t ts, int localtime);
-#if HAVE_STRFTIME
+
#define _php_strftime php_strftime
+
PHPAPI void php_strftime(INTERNAL_FUNCTION_PARAMETERS, int gm);
-#endif
PHPAPI zend_string *php_format_date(char *format, size_t format_len, time_t ts, int localtime);
/* Mechanism to set new TZ database */