arpad Wed, 04 Jan 2012 11:44:05 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=321758
Log: add more tests for #60634 (stems from #21306) and xfail them all for the moment Bugs: https://bugs.php.net/60634 (Verified) Segmentation fault when trying to die() in SessionHandler::write() https://bugs.php.net/21306 (Closed) partly RSHUTDOWN and "cannot change the session settings" error Changed paths: U php/php-src/branches/PHP_5_3/ext/session/tests/bug60634.phpt A php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_1.phpt A php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_2.phpt A php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_3.phpt A php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_4.phpt A php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_5.phpt U php/php-src/branches/PHP_5_4/ext/session/tests/bug60634.phpt A php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_1.phpt A php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_2.phpt A php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_3.phpt A php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_4.phpt A php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_5.phpt U php/php-src/trunk/ext/session/tests/bug60634.phpt A php/php-src/trunk/ext/session/tests/bug60634_error_1.phpt A php/php-src/trunk/ext/session/tests/bug60634_error_2.phpt A php/php-src/trunk/ext/session/tests/bug60634_error_3.phpt A php/php-src/trunk/ext/session/tests/bug60634_error_4.phpt A php/php-src/trunk/ext/session/tests/bug60634_error_5.phpt
Modified: php/php-src/branches/PHP_5_3/ext/session/tests/bug60634.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/session/tests/bug60634.phpt 2012-01-04 10:53:28 UTC (rev 321757) +++ php/php-src/branches/PHP_5_3/ext/session/tests/bug60634.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -1,5 +1,7 @@ --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 @@ -42,4 +44,3 @@ ?> --EXPECTF-- write: goodbye cruel world -close: goodbye cruel world Added: php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_1.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_1.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_1.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -0,0 +1,49 @@ +--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 +--SKIPIF-- +<?php include('skipif.inc'); ?> +--FILE-- +<?php + +ob_start(); + +function open($save_path, $session_name) { + return true; +} + +function close() { + echo "close: goodbye cruel world\n"; +} + +function read($id) { + return ''; +} + +function write($id, $session_data) { + echo "write: goodbye cruel world\n"; + undefined_function(); +} + +function destroy($id) { + return true; +} + +function gc($maxlifetime) { + return true; +} + +session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); +session_start(); +session_write_close(); +echo "um, hi\n"; + +?> +--EXPECTF-- +write: goodbye cruel world + +Fatal error: Call to undefined function undefined_function() in %s on line %d Added: php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_2.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_2.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_2.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -0,0 +1,49 @@ +--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 +--SKIPIF-- +<?php include('skipif.inc'); ?> +--FILE-- +<?php + +ob_start(); + +function open($save_path, $session_name) { + return true; +} + +function close() { + echo "close: goodbye cruel world\n"; +} + +function read($id) { + return ''; +} + +function write($id, $session_data) { + echo "write: goodbye cruel world\n"; + throw new Exception; +} + +function destroy($id) { + return true; +} + +function gc($maxlifetime) { + return true; +} + +session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); +session_start(); +session_write_close(); +echo "um, hi\n"; + +?> +--EXPECTF-- +write: goodbye cruel world + +Fatal error: Uncaught exception 'Exception' in %s Added: php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_3.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_3.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_3.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -0,0 +1,48 @@ +--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 +--SKIPIF-- +<?php include('skipif.inc'); ?> +--FILE-- +<?php + +ob_start(); + +function open($save_path, $session_name) { + return true; +} + +function close() { + echo "close: goodbye cruel world\n"; + exit; +} + +function read($id) { + return ''; +} + +function write($id, $session_data) { + echo "write: goodbye cruel world\n"; + undefined_function(); +} + +function destroy($id) { + return true; +} + +function gc($maxlifetime) { + return true; +} + +session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); +session_start(); + +?> +--EXPECTF-- +write: goodbye cruel world + +Fatal error: Call to undefined function undefined_function() in %s on line %d Added: php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_4.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_4.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_4.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -0,0 +1,48 @@ +--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 +--SKIPIF-- +<?php include('skipif.inc'); ?> +--FILE-- +<?php + +ob_start(); + +function open($save_path, $session_name) { + return true; +} + +function close() { + echo "close: goodbye cruel world\n"; + exit; +} + +function read($id) { + return ''; +} + +function write($id, $session_data) { + echo "write: goodbye cruel world\n"; + throw new Exception; +} + +function destroy($id) { + return true; +} + +function gc($maxlifetime) { + return true; +} + +session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); +session_start(); + +?> +--EXPECTF-- +write: goodbye cruel world + +Fatal error: Uncaught exception 'Exception' in %s Added: php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_5.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_5.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/session/tests/bug60634_error_5.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -0,0 +1,49 @@ +--TEST-- +Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - fatal error in close during exec +--XFAIL-- +Long term low priority bug, working on it +--INI-- +session.save_path= +session.name=PHPSESSID +--SKIPIF-- +<?php include('skipif.inc'); ?> +--FILE-- +<?php + +ob_start(); + +function open($save_path, $session_name) { + return true; +} + +function close() { + echo "close: goodbye cruel world\n"; + undefined_function(); +} + +function read($id) { + return ''; +} + +function write($id, $session_data) { + return true; +} + +function destroy($id) { + return true; +} + +function gc($maxlifetime) { + return true; +} + +session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); +session_start(); +session_write_close(); +echo "um, hi\n"; + +?> +--EXPECTF-- +close: goodbye cruel world + +Fatal error: Call to undefined function undefined_function() in %s on line %d Modified: php/php-src/branches/PHP_5_4/ext/session/tests/bug60634.phpt =================================================================== --- php/php-src/branches/PHP_5_4/ext/session/tests/bug60634.phpt 2012-01-04 10:53:28 UTC (rev 321757) +++ php/php-src/branches/PHP_5_4/ext/session/tests/bug60634.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -1,5 +1,7 @@ --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 @@ -42,4 +44,3 @@ ?> --EXPECTF-- write: goodbye cruel world -close: goodbye cruel world Added: php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_1.phpt =================================================================== --- php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_1.phpt (rev 0) +++ php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_1.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -0,0 +1,49 @@ +--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 +--SKIPIF-- +<?php include('skipif.inc'); ?> +--FILE-- +<?php + +ob_start(); + +function open($save_path, $session_name) { + return true; +} + +function close() { + echo "close: goodbye cruel world\n"; +} + +function read($id) { + return ''; +} + +function write($id, $session_data) { + echo "write: goodbye cruel world\n"; + undefined_function(); +} + +function destroy($id) { + return true; +} + +function gc($maxlifetime) { + return true; +} + +session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); +session_start(); +session_write_close(); +echo "um, hi\n"; + +?> +--EXPECTF-- +write: goodbye cruel world + +Fatal error: Call to undefined function undefined_function() in %s on line %d Added: php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_2.phpt =================================================================== --- php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_2.phpt (rev 0) +++ php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_2.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -0,0 +1,49 @@ +--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 +--SKIPIF-- +<?php include('skipif.inc'); ?> +--FILE-- +<?php + +ob_start(); + +function open($save_path, $session_name) { + return true; +} + +function close() { + echo "close: goodbye cruel world\n"; +} + +function read($id) { + return ''; +} + +function write($id, $session_data) { + echo "write: goodbye cruel world\n"; + throw new Exception; +} + +function destroy($id) { + return true; +} + +function gc($maxlifetime) { + return true; +} + +session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); +session_start(); +session_write_close(); +echo "um, hi\n"; + +?> +--EXPECTF-- +write: goodbye cruel world + +Fatal error: Uncaught exception 'Exception' in %s Added: php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_3.phpt =================================================================== --- php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_3.phpt (rev 0) +++ php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_3.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -0,0 +1,48 @@ +--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 +--SKIPIF-- +<?php include('skipif.inc'); ?> +--FILE-- +<?php + +ob_start(); + +function open($save_path, $session_name) { + return true; +} + +function close() { + echo "close: goodbye cruel world\n"; + exit; +} + +function read($id) { + return ''; +} + +function write($id, $session_data) { + echo "write: goodbye cruel world\n"; + undefined_function(); +} + +function destroy($id) { + return true; +} + +function gc($maxlifetime) { + return true; +} + +session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); +session_start(); + +?> +--EXPECTF-- +write: goodbye cruel world + +Fatal error: Call to undefined function undefined_function() in %s on line %d Added: php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_4.phpt =================================================================== --- php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_4.phpt (rev 0) +++ php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_4.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -0,0 +1,48 @@ +--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 +--SKIPIF-- +<?php include('skipif.inc'); ?> +--FILE-- +<?php + +ob_start(); + +function open($save_path, $session_name) { + return true; +} + +function close() { + echo "close: goodbye cruel world\n"; + exit; +} + +function read($id) { + return ''; +} + +function write($id, $session_data) { + echo "write: goodbye cruel world\n"; + throw new Exception; +} + +function destroy($id) { + return true; +} + +function gc($maxlifetime) { + return true; +} + +session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); +session_start(); + +?> +--EXPECTF-- +write: goodbye cruel world + +Fatal error: Uncaught exception 'Exception' in %s Added: php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_5.phpt =================================================================== --- php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_5.phpt (rev 0) +++ php/php-src/branches/PHP_5_4/ext/session/tests/bug60634_error_5.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -0,0 +1,49 @@ +--TEST-- +Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - fatal error in close during exec +--XFAIL-- +Long term low priority bug, working on it +--INI-- +session.save_path= +session.name=PHPSESSID +--SKIPIF-- +<?php include('skipif.inc'); ?> +--FILE-- +<?php + +ob_start(); + +function open($save_path, $session_name) { + return true; +} + +function close() { + echo "close: goodbye cruel world\n"; + undefined_function(); +} + +function read($id) { + return ''; +} + +function write($id, $session_data) { + return true; +} + +function destroy($id) { + return true; +} + +function gc($maxlifetime) { + return true; +} + +session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); +session_start(); +session_write_close(); +echo "um, hi\n"; + +?> +--EXPECTF-- +close: goodbye cruel world + +Fatal error: Call to undefined function undefined_function() in %s on line %d Modified: php/php-src/trunk/ext/session/tests/bug60634.phpt =================================================================== --- php/php-src/trunk/ext/session/tests/bug60634.phpt 2012-01-04 10:53:28 UTC (rev 321757) +++ php/php-src/trunk/ext/session/tests/bug60634.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -1,5 +1,7 @@ --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 @@ -42,4 +44,3 @@ ?> --EXPECTF-- write: goodbye cruel world -close: goodbye cruel world Added: php/php-src/trunk/ext/session/tests/bug60634_error_1.phpt =================================================================== --- php/php-src/trunk/ext/session/tests/bug60634_error_1.phpt (rev 0) +++ php/php-src/trunk/ext/session/tests/bug60634_error_1.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -0,0 +1,49 @@ +--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 +--SKIPIF-- +<?php include('skipif.inc'); ?> +--FILE-- +<?php + +ob_start(); + +function open($save_path, $session_name) { + return true; +} + +function close() { + echo "close: goodbye cruel world\n"; +} + +function read($id) { + return ''; +} + +function write($id, $session_data) { + echo "write: goodbye cruel world\n"; + undefined_function(); +} + +function destroy($id) { + return true; +} + +function gc($maxlifetime) { + return true; +} + +session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); +session_start(); +session_write_close(); +echo "um, hi\n"; + +?> +--EXPECTF-- +write: goodbye cruel world + +Fatal error: Call to undefined function undefined_function() in %s on line %d Added: php/php-src/trunk/ext/session/tests/bug60634_error_2.phpt =================================================================== --- php/php-src/trunk/ext/session/tests/bug60634_error_2.phpt (rev 0) +++ php/php-src/trunk/ext/session/tests/bug60634_error_2.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -0,0 +1,49 @@ +--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 +--SKIPIF-- +<?php include('skipif.inc'); ?> +--FILE-- +<?php + +ob_start(); + +function open($save_path, $session_name) { + return true; +} + +function close() { + echo "close: goodbye cruel world\n"; +} + +function read($id) { + return ''; +} + +function write($id, $session_data) { + echo "write: goodbye cruel world\n"; + throw new Exception; +} + +function destroy($id) { + return true; +} + +function gc($maxlifetime) { + return true; +} + +session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); +session_start(); +session_write_close(); +echo "um, hi\n"; + +?> +--EXPECTF-- +write: goodbye cruel world + +Fatal error: Uncaught exception 'Exception' in %s Added: php/php-src/trunk/ext/session/tests/bug60634_error_3.phpt =================================================================== --- php/php-src/trunk/ext/session/tests/bug60634_error_3.phpt (rev 0) +++ php/php-src/trunk/ext/session/tests/bug60634_error_3.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -0,0 +1,48 @@ +--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 +--SKIPIF-- +<?php include('skipif.inc'); ?> +--FILE-- +<?php + +ob_start(); + +function open($save_path, $session_name) { + return true; +} + +function close() { + echo "close: goodbye cruel world\n"; + exit; +} + +function read($id) { + return ''; +} + +function write($id, $session_data) { + echo "write: goodbye cruel world\n"; + undefined_function(); +} + +function destroy($id) { + return true; +} + +function gc($maxlifetime) { + return true; +} + +session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); +session_start(); + +?> +--EXPECTF-- +write: goodbye cruel world + +Fatal error: Call to undefined function undefined_function() in %s on line %d Added: php/php-src/trunk/ext/session/tests/bug60634_error_4.phpt =================================================================== --- php/php-src/trunk/ext/session/tests/bug60634_error_4.phpt (rev 0) +++ php/php-src/trunk/ext/session/tests/bug60634_error_4.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -0,0 +1,48 @@ +--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 +--SKIPIF-- +<?php include('skipif.inc'); ?> +--FILE-- +<?php + +ob_start(); + +function open($save_path, $session_name) { + return true; +} + +function close() { + echo "close: goodbye cruel world\n"; + exit; +} + +function read($id) { + return ''; +} + +function write($id, $session_data) { + echo "write: goodbye cruel world\n"; + throw new Exception; +} + +function destroy($id) { + return true; +} + +function gc($maxlifetime) { + return true; +} + +session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); +session_start(); + +?> +--EXPECTF-- +write: goodbye cruel world + +Fatal error: Uncaught exception 'Exception' in %s Added: php/php-src/trunk/ext/session/tests/bug60634_error_5.phpt =================================================================== --- php/php-src/trunk/ext/session/tests/bug60634_error_5.phpt (rev 0) +++ php/php-src/trunk/ext/session/tests/bug60634_error_5.phpt 2012-01-04 11:44:05 UTC (rev 321758) @@ -0,0 +1,49 @@ +--TEST-- +Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - fatal error in close during exec +--XFAIL-- +Long term low priority bug, working on it +--INI-- +session.save_path= +session.name=PHPSESSID +--SKIPIF-- +<?php include('skipif.inc'); ?> +--FILE-- +<?php + +ob_start(); + +function open($save_path, $session_name) { + return true; +} + +function close() { + echo "close: goodbye cruel world\n"; + undefined_function(); +} + +function read($id) { + return ''; +} + +function write($id, $session_data) { + return true; +} + +function destroy($id) { + return true; +} + +function gc($maxlifetime) { + return true; +} + +session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); +session_start(); +session_write_close(); +echo "um, hi\n"; + +?> +--EXPECTF-- +close: goodbye cruel world + +Fatal error: Call to undefined function undefined_function() in %s on line %d
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php