There was an error while loading. Please reload this page.
1 parent 65067df commit 599b94fCopy full SHA for 599b94f
ext/date/php_date.c
@@ -62,7 +62,7 @@ static inline long long php_date_llabs( long long i ) { return i >= 0 ? i : -i;
62
#endif
63
64
65
-static time_t php_time()
+PHPAPI time_t php_time()
66
{
67
#ifdef HAVE_GETTIMEOFDAY
68
struct timeval tm;
ext/date/php_date.h
@@ -205,6 +205,8 @@ ZEND_END_MODULE_GLOBALS(date)
205
206
#define DATEG(v) ZEND_MODULE_GLOBALS_ACCESSOR(date, v)
207
208
+PHPAPI time_t php_time();
209
+
210
/* Backwards compatibility wrapper */
211
PHPAPI zend_long php_parse_date(char *string, zend_long *now);
212
PHPAPI void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gmt);
0 commit comments