summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-07-08 18:16:46 +0000
committerAntony Dovgal <tony2001@php.net>2005-07-08 18:16:46 +0000
commit38e4fb09e0ae0a6c50a71934eb2cf68e674b8ca4 (patch)
tree0c4543cf095414fc203aaad75355c6b18180082a /ext
parent512af63a639610780946f66ab00f492ab911ed93 (diff)
downloadphp-git-38e4fb09e0ae0a6c50a71934eb2cf68e674b8ca4.tar.gz
fix tsrm build
Diffstat (limited to 'ext')
-rw-r--r--ext/date/php_date.c4
-rw-r--r--ext/date/php_date.h2
-rw-r--r--ext/standard/head.c4
3 files changed, 5 insertions, 5 deletions
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);
}