Skip to content

Commit 6d1d8ec

Browse files
committed
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: fix zts
2 parents e67ef24 + 3479228 commit 6d1d8ec

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
@@ -1280,7 +1280,7 @@ static int php_session_cache_limiter(TSRMLS_D) /* {{{ */
12801280
* It must be directly removed from SG(sapi_header) because sapi_add_header_ex()
12811281
* removes all of matching cookie. i.e. It deletes all of Set-Cookie headers.
12821282
*/
1283-
static void php_session_remove_cookie() {
1283+
static void php_session_remove_cookie(TSRMLS_D) {
12841284
sapi_header_struct *header;
12851285
zend_llist *l = &SG(sapi_headers).headers;
12861286
zend_llist_element *next;
@@ -1386,7 +1386,7 @@ static void php_session_send_cookie(TSRMLS_D) /* {{{ */
13861386

13871387
smart_str_0(&ncookie);
13881388

1389-
php_session_remove_cookie(); /* remove already sent session ID cookie */
1389+
php_session_remove_cookie(TSRMLS_C); /* remove already sent session ID cookie */
13901390
sapi_add_header_ex(ncookie.c, ncookie.len, 0, 0 TSRMLS_CC);
13911391
}
13921392
/* }}} */

0 commit comments

Comments
 (0)