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