1--TEST-- 2Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) 3--XFAIL-- 4Long term low priority bug, working on it 5--INI-- 6session.save_path= 7session.name=PHPSESSID 8--SKIPIF-- 9<?php include('skipif.inc'); ?> 10--FILE-- 11<?php 12 13ob_start(); 14 15function open($save_path, $session_name) { 16 return true; 17} 18 19function close() { 20 die("close: goodbye cruel world\n"); 21} 22 23function read($id) { 24 return ''; 25} 26 27function write($id, $session_data) { 28 die("write: goodbye cruel world\n"); 29} 30 31function destroy($id) { 32 return true; 33} 34 35function gc($maxlifetime) { 36 return true; 37} 38 39session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc'); 40session_start(); 41session_write_close(); 42echo "um, hi\n"; 43 44?> 45--EXPECTF-- 46write: goodbye cruel world 47