export php_time

This commit is contained in:
Joe Watkins 2019-06-19 12:39:51 +02:00
parent 65067dff01
commit 599b94ff14
No known key found for this signature in database
GPG Key ID: F9BA0ADA31CBD89E
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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);