diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2014-01-22 13:46:59 +0900 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2014-01-22 13:46:59 +0900 |
commit | 383423a1ee356b102563100e99e147ce8da996c3 (patch) | |
tree | 52e64d0f2e52c4cf24911456031d6e4d34894146 | |
parent | eb6d1fcd3c592aba0a6fe8527dc3621fbf521aa0 (diff) | |
download | php-git-383423a1ee356b102563100e99e147ce8da996c3.tar.gz |
Re-fixed bug #66469
-rw-r--r-- | ext/session/session.c | 4 | ||||
-rw-r--r-- | ext/session/tests/bug60634.phpt | 1 | ||||
-rw-r--r-- | ext/session/tests/bug60634_error_4.phpt | 1 |
3 files changed, 3 insertions, 3 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 90d6ba7447..b1fcd3a239 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1343,9 +1343,7 @@ static void php_session_send_cookie(TSRMLS_D) /* {{{ */ smart_str_0(&ncookie); - /* 'replace' must be 0 here, else a previous Set-Cookie - header, probably sent with setcookie() will be replaced! */ - sapi_add_header_ex(ncookie.c, ncookie.len, 0, 0 TSRMLS_CC); + sapi_add_header_ex(ncookie.c, ncookie.len, 0, 1 TSRMLS_CC); } /* }}} */ diff --git a/ext/session/tests/bug60634.phpt b/ext/session/tests/bug60634.phpt index e2dfd15b37..86dcb11526 100644 --- a/ext/session/tests/bug60634.phpt +++ b/ext/session/tests/bug60634.phpt @@ -43,3 +43,4 @@ echo "um, hi\n"; --EXPECTF-- write: goodbye cruel world close: goodbye cruel world + diff --git a/ext/session/tests/bug60634_error_4.phpt b/ext/session/tests/bug60634_error_4.phpt index f21d077b54..d0b5786af9 100644 --- a/ext/session/tests/bug60634_error_4.phpt +++ b/ext/session/tests/bug60634_error_4.phpt @@ -49,3 +49,4 @@ Stack trace: #1 {main} thrown in %s on line %d close: goodbye cruel world + |