From: Antony Dovgal Date: Fri, 8 Jul 2005 18:16:46 +0000 (+0000) Subject: fix tsrm build X-Git-Tag: php-5.1.0b3~84 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38e4fb09e0ae0a6c50a71934eb2cf68e674b8ca4;p=php fix tsrm build --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 19d36e48e4..347284e02a 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -347,13 +347,13 @@ static void php_date(INTERNAL_FUNCTION_PARAMETERS, int localtime) RETURN_FALSE; } - string = php_format_date(format, format_len, ts, localtime); + string = php_format_date(format, format_len, ts, localtime TSRMLS_CC); RETVAL_STRING(string, 0); } /* }}} */ -PHPAPI char *php_format_date(char *format, int format_len, long ts, int localtime) /* {{{ */ +PHPAPI char *php_format_date(char *format, int format_len, long ts, int localtime TSRMLS_DC) /* {{{ */ { timelib_time *t; timelib_tzinfo *tzi; diff --git a/ext/date/php_date.h b/ext/date/php_date.h index 792edae371..cfef0fbac0 100644 --- a/ext/date/php_date.h +++ b/ext/date/php_date.h @@ -69,6 +69,6 @@ PHPAPI void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gmt); #define _php_strftime php_strftime PHPAPI void php_strftime(INTERNAL_FUNCTION_PARAMETERS, int gm); #endif -PHPAPI char *php_format_date(char *format, int format_len, long ts, int localtime); +PHPAPI char *php_format_date(char *format, int format_len, long ts, int localtime TSRMLS_DC); #endif /* PHP_DATE_H */ diff --git a/ext/standard/head.c b/ext/standard/head.c index d565ec1ac1..970a3e2151 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -103,14 +103,14 @@ PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, t * pick an expiry date 1 year and 1 second in the past */ time_t t = time(NULL) - 31536001; - dt = php_format_date("D, d-M-Y H:i:s T", sizeof("D, d-M-Y H:i:s T")-1, t, 0); + dt = php_format_date("D, d-M-Y H:i:s T", sizeof("D, d-M-Y H:i:s T")-1, t, 0 TSRMLS_CC); sprintf(cookie, "Set-Cookie: %s=deleted; expires=%s", name, dt); efree(dt); } else { sprintf(cookie, "Set-Cookie: %s=%s", name, value ? encoded_value : ""); if (expires > 0) { strcat(cookie, "; expires="); - dt = php_format_date("D, d-M-Y H:i:s T", sizeof("D, d-M-Y H:i:s T")-1, expires, 0); + dt = php_format_date("D, d-M-Y H:i:s T", sizeof("D, d-M-Y H:i:s T")-1, expires, 0 TSRMLS_CC); strcat(cookie, dt); efree(dt); }