diff options
author | Joe Watkins <krakjoe@php.net> | 2019-06-19 12:39:51 +0200 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2019-06-19 12:39:51 +0200 |
commit | 599b94ff14e9de2acd871b7db17e70e6c84dbe2b (patch) | |
tree | 940dfa4d31b5248742322ac3a98070175c816584 | |
parent | 65067dff01fc3a46861ddfe0fe6d3e556460c146 (diff) | |
download | php-git-599b94ff14e9de2acd871b7db17e70e6c84dbe2b.tar.gz |
export php_time
-rw-r--r-- | ext/date/php_date.c | 2 | ||||
-rw-r--r-- | ext/date/php_date.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 24c199ec96..9ad4427897 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -62,7 +62,7 @@ static inline long long php_date_llabs( long long i ) { return i >= 0 ? i : -i; #endif #endif -static time_t php_time() +PHPAPI time_t php_time() { #ifdef HAVE_GETTIMEOFDAY struct timeval tm; diff --git a/ext/date/php_date.h b/ext/date/php_date.h index 8abfa5f464..999233c4ae 100644 --- a/ext/date/php_date.h +++ b/ext/date/php_date.h @@ -205,6 +205,8 @@ ZEND_END_MODULE_GLOBALS(date) #define DATEG(v) ZEND_MODULE_GLOBALS_ACCESSOR(date, v) +PHPAPI time_t php_time(); + /* Backwards compatibility wrapper */ PHPAPI zend_long php_parse_date(char *string, zend_long *now); PHPAPI void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gmt); |