com php-src: export php_time: ext/date/php_date.c e xt/date/php_date.h

From: Date: Wed, 19 Jun 2019 10:39:51 +0000
Subject: com php-src: export php_time: ext/date/php_date.c e xt/date/php_date.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106881@lists.php.net to get a copy of this message
Commit: 599b94ff14e9de2acd871b7db17e70e6c84dbe2b Author: Joe Watkins <krakjoe@php.net> Wed, 19 Jun 2019 12:39:51 +0200 Parents: 65067dff01fc3a46861ddfe0fe6d3e556460c146 Branches: PHP-7.2 PHP-7.3 PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=599b94ff14e9de2acd871b7db17e70e6c84dbe2b Log: export php_time Changed paths: M ext/date/php_date.c M ext/date/php_date.h Diff: diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 24c199e..9ad4427 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 8abfa5f..999233c 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);

« previous php.cvs (#106881) next »