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