Skip to content

Commit 599b94f

Browse files
committed
export php_time
1 parent 65067df commit 599b94f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ext/date/php_date.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static inline long long php_date_llabs( long long i ) { return i >= 0 ? i : -i;
6262
#endif
6363
#endif
6464

65-
static time_t php_time()
65+
PHPAPI time_t php_time()
6666
{
6767
#ifdef HAVE_GETTIMEOFDAY
6868
struct timeval tm;

ext/date/php_date.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ ZEND_END_MODULE_GLOBALS(date)
205205

206206
#define DATEG(v) ZEND_MODULE_GLOBALS_ACCESSOR(date, v)
207207

208+
PHPAPI time_t php_time();
209+
208210
/* Backwards compatibility wrapper */
209211
PHPAPI zend_long php_parse_date(char *string, zend_long *now);
210212
PHPAPI void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gmt);

0 commit comments

Comments
 (0)