Skip to content

Commit 3479228

Browse files
committed
fix zts
1 parent 7bcf01f commit 3479228

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/session/session.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ static int php_session_cache_limiter(TSRMLS_D) /* {{{ */
11881188
* It must be directly removed from SG(sapi_header) because sapi_add_header_ex()
11891189
* removes all of matching cookie. i.e. It deletes all of Set-Cookie headers.
11901190
*/
1191-
static void php_session_remove_cookie() {
1191+
static void php_session_remove_cookie(TSRMLS_D) {
11921192
sapi_header_struct *header;
11931193
zend_llist *l = &SG(sapi_headers).headers;
11941194
zend_llist_element *next;
@@ -1291,7 +1291,7 @@ static void php_session_send_cookie(TSRMLS_D) /* {{{ */
12911291

12921292
smart_str_0(&ncookie);
12931293

1294-
php_session_remove_cookie(); /* remove already sent session ID cookie */
1294+
php_session_remove_cookie(TSRMLS_C); /* remove already sent session ID cookie */
12951295
sapi_add_header_ex(ncookie.c, ncookie.len, 0, 0 TSRMLS_CC);
12961296
}
12971297
/* }}} */

0 commit comments

Comments
 (0)