From 3a857852a8dada5e60ba6d028878ecd6224b9c5d Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Wed, 13 Mar 2019 23:14:37 +0100 Subject: 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 --- ext/date/php_date.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'ext/date/php_date.h') 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 */ -- cgit v1.2.1