]> granicus.if.org Git - php/commitdiff
Re-fixed bug #66469
authorYasuo Ohgaki <yohgaki@php.net>
Wed, 22 Jan 2014 04:40:58 +0000 (13:40 +0900)
committerYasuo Ohgaki <yohgaki@php.net>
Wed, 22 Jan 2014 04:40:58 +0000 (13:40 +0900)
ext/session/session.c
ext/session/tests/bug60634.phpt
ext/session/tests/bug60634_error_1.phpt
ext/session/tests/bug60634_error_2.phpt
ext/session/tests/bug60634_error_3.phpt
ext/session/tests/bug60634_error_4.phpt

index 5b03d6362e6b88ce104a199a1215be3c1c533edc..d6d5da2d0cd5cc8cf7fb57f89167a376dc39b11b 100644 (file)
@@ -1248,9 +1248,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);
 }
 /* }}} */
 
index 2ec0c26c13c5cc50a1bce79f6a43b0ae80d4fac4..69f3db4faa77452c7085dab9b915686a28cd9b88 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write())
---XFAIL--
-Long term low priority bug, working on it
 --INI--
 session.save_path=
 session.name=PHPSESSID
@@ -44,3 +42,4 @@ echo "um, hi\n";
 ?>
 --EXPECTF--
 write: goodbye cruel world
+close: goodbye cruel world
\ No newline at end of file
index 3b6e394eed59706b7c485d3ce80af83cb84c88fe..e41592f18dd095ef1a5a08890724208291a536ca 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - fatal error in write during exec
---XFAIL--
-Long term low priority bug, working on it
 --INI--
 session.save_path=
 session.name=PHPSESSID
@@ -47,3 +45,4 @@ echo "um, hi\n";
 write: goodbye cruel world
 
 Fatal error: Call to undefined function undefined_function() in %s on line %d
+close: goodbye cruel world
index 265fb303f78d7802b51f68340c077874c319306b..8ab0242b62b1501c419908c88e1044c1c7f633db 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - exception in write during exec
---XFAIL--
-Long term low priority bug, working on it
 --INI--
 session.save_path=
 session.name=PHPSESSID
@@ -47,3 +45,8 @@ echo "um, hi\n";
 write: goodbye cruel world
 
 Fatal error: Uncaught exception 'Exception' in %s
+Stack trace:
+#0 [internal function]: write('%s', '')
+#1 %s/ext/session/tests/bug60634_error_2.php(32): session_write_close()
+#2 {main}
+  thrown in %s/ext/session/tests/bug60634_error_2.php on line 19
\ No newline at end of file
index b2004d68bcb9beb77e44ab36c85c417d726c237d..4a508a4d8fe070f6da73b2dc7d1f0c4f01701f08 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - fatal error in write after exec
---XFAIL--
-Long term low priority bug, working on it
 --INI--
 session.save_path=
 session.name=PHPSESSID
@@ -46,3 +44,4 @@ session_start();
 write: goodbye cruel world
 
 Fatal error: Call to undefined function undefined_function() in %s on line %d
+close: goodbye cruel world
index 60bc0dcf54594c08813129ef1c9e465b07c861cd..d5e81b8abf92ecb4732f2fcb912d4b0fe0f27452 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - exception in write after exec
---XFAIL--
-Long term low priority bug, working on it
 --INI--
 session.save_path=
 session.name=PHPSESSID
@@ -46,3 +44,8 @@ session_start();
 write: goodbye cruel world
 
 Fatal error: Uncaught exception 'Exception' in %s
+Stack trace:
+#0 [internal function]: write('%s', '')
+#1 {main}
+  thrown in %s/ext/session/tests/bug60634_error_4.php on line 20
+close: goodbye cruel world
\ No newline at end of file