Skip to content

Commit a27e51f

Browse files
author
Yasuo Ohgaki
committed
Re-fixed bug #66469
1 parent 1bc16fb commit a27e51f

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

ext/session/session.c

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

12491249
smart_str_0(&ncookie);
12501250

1251-
/* 'replace' must be 0 here, else a previous Set-Cookie
1252-
header, probably sent with setcookie() will be replaced! */
1253-
sapi_add_header_ex(ncookie.c, ncookie.len, 0, 0 TSRMLS_CC);
1251+
sapi_add_header_ex(ncookie.c, ncookie.len, 0, 1 TSRMLS_CC);
12541252
}
12551253
/* }}} */
12561254

ext/session/tests/bug60634.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write())
3-
--XFAIL--
4-
Long term low priority bug, working on it
53
--INI--
64
session.save_path=
75
session.name=PHPSESSID
@@ -44,3 +42,4 @@ echo "um, hi\n";
4442
?>
4543
--EXPECTF--
4644
write: goodbye cruel world
45+
close: goodbye cruel world

ext/session/tests/bug60634_error_1.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - fatal error in write during exec
3-
--XFAIL--
4-
Long term low priority bug, working on it
53
--INI--
64
session.save_path=
75
session.name=PHPSESSID
@@ -47,3 +45,4 @@ echo "um, hi\n";
4745
write: goodbye cruel world
4846

4947
Fatal error: Call to undefined function undefined_function() in %s on line %d
48+
close: goodbye cruel world

ext/session/tests/bug60634_error_2.phpt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - exception in write during exec
3-
--XFAIL--
4-
Long term low priority bug, working on it
53
--INI--
64
session.save_path=
75
session.name=PHPSESSID
@@ -47,3 +45,8 @@ echo "um, hi\n";
4745
write: goodbye cruel world
4846

4947
Fatal error: Uncaught exception 'Exception' in %s
48+
Stack trace:
49+
#0 [internal function]: write('%s', '')
50+
#1 %s/ext/session/tests/bug60634_error_2.php(32): session_write_close()
51+
#2 {main}
52+
thrown in %s/ext/session/tests/bug60634_error_2.php on line 19

ext/session/tests/bug60634_error_3.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - fatal error in write after exec
3-
--XFAIL--
4-
Long term low priority bug, working on it
53
--INI--
64
session.save_path=
75
session.name=PHPSESSID
@@ -46,3 +44,4 @@ session_start();
4644
write: goodbye cruel world
4745

4846
Fatal error: Call to undefined function undefined_function() in %s on line %d
47+
close: goodbye cruel world

ext/session/tests/bug60634_error_4.phpt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - exception in write after exec
3-
--XFAIL--
4-
Long term low priority bug, working on it
53
--INI--
64
session.save_path=
75
session.name=PHPSESSID
@@ -46,3 +44,8 @@ session_start();
4644
write: goodbye cruel world
4745

4846
Fatal error: Uncaught exception 'Exception' in %s
47+
Stack trace:
48+
#0 [internal function]: write('%s', '')
49+
#1 {main}
50+
thrown in %s/ext/session/tests/bug60634_error_4.php on line 20
51+
close: goodbye cruel world

0 commit comments

Comments
 (0)