Skip to content

Commit 9cefeea

Browse files
author
Yasuo Ohgaki
committed
Merge branch 'PHP-5.6'
* PHP-5.6: Re-fixed bug #66469
2 parents d5f79e4 + 26a2bed commit 9cefeea

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
@@ -1365,9 +1365,7 @@ static void php_session_send_cookie(TSRMLS_D) /* {{{ */
13651365

13661366
smart_str_0(&ncookie);
13671367

1368-
/* 'replace' must be 0 here, else a previous Set-Cookie
1369-
header, probably sent with setcookie() will be replaced! */
1370-
sapi_add_header_ex(ncookie.c, ncookie.len, 0, 0 TSRMLS_CC);
1368+
sapi_add_header_ex(ncookie.c, ncookie.len, 0, 1 TSRMLS_CC);
13711369
}
13721370
/* }}} */
13731371

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)