Skip to content

Commit 383423a

Browse files
author
Yasuo Ohgaki
committed
Re-fixed bug #66469
1 parent eb6d1fc commit 383423a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ext/session/session.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,9 +1343,7 @@ static void php_session_send_cookie(TSRMLS_D) /* {{{ */
13431343

13441344
smart_str_0(&ncookie);
13451345

1346-
/* 'replace' must be 0 here, else a previous Set-Cookie
1347-
header, probably sent with setcookie() will be replaced! */
1348-
sapi_add_header_ex(ncookie.c, ncookie.len, 0, 0 TSRMLS_CC);
1346+
sapi_add_header_ex(ncookie.c, ncookie.len, 0, 1 TSRMLS_CC);
13491347
}
13501348
/* }}} */
13511349

ext/session/tests/bug60634.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ echo "um, hi\n";
4343
--EXPECTF--
4444
write: goodbye cruel world
4545
close: goodbye cruel world
46+

ext/session/tests/bug60634_error_4.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ Stack trace:
4949
#1 {main}
5050
thrown in %s on line %d
5151
close: goodbye cruel world
52+

0 commit comments

Comments
 (0)