1--TEST--
2Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - fatal error in close during exec
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	echo "close: goodbye cruel world\n";
21	undefined_function();
22}
23
24function read($id) {
25	return '';
26}
27
28function write($id, $session_data) {
29	return true;
30}
31
32function destroy($id) {
33    return true;
34}
35
36function gc($maxlifetime) {
37    return true;
38}
39
40session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc');
41session_start();
42session_write_close();
43echo "um, hi\n";
44
45?>
46--EXPECTF--
47close: goodbye cruel world
48
49Fatal error: Call to undefined function undefined_function() in %s on line %d
50