]> granicus.if.org Git - php/commitdiff
fix tsrm build
authorAntony Dovgal <tony2001@php.net>
Fri, 8 Jul 2005 18:16:46 +0000 (18:16 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 8 Jul 2005 18:16:46 +0000 (18:16 +0000)
ext/date/php_date.c
ext/date/php_date.h
ext/standard/head.c

index 19d36e48e4a06926177fc66f85df1941688d3474..347284e02a75f13f642dc793e6d314ff4c5124aa 100644 (file)
@@ -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;
index 792edae3719b8e0007b98746c6c0b1738e236726..cfef0fbac0a8e6c55c26a555b7c2a3bb4504fc81 100644 (file)
@@ -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 */
index d565ec1ac188858d8ad702d390d506dc32a1ee46..970a3e215192d7464439fabaf6c316c472c4774f 100644 (file)
@@ -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);
                }