1--TEST--
2Test session_module_name() function : variation
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--FILE--
6<?php
7
8ob_start();
9
10echo "*** Testing session_module_name() : variation ***\n";
11
12function open($save_path, $session_name) { }
13function close() { }
14function read($id) { }
15function write($id, $session_data) { }
16function destroy($id) { }
17function gc($maxlifetime) { }
18
19var_dump(session_module_name("files"));
20session_set_save_handler("open", "close", "read", "write", "destroy", "gc");
21var_dump(session_module_name());
22
23ob_end_flush();
24?>
25--EXPECTF--
26*** Testing session_module_name() : variation ***
27string(%d) "%s"
28string(4) "user"
29