1--TEST--
2Test session_set_save_handler() function : variation
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--FILE--
8<?php
9
10ob_start();
11
12echo "*** Testing session_set_save_handler() : variation ***\n";
13
14var_dump(session_module_name());
15var_dump(session_module_name(FALSE));
16var_dump(session_module_name());
17var_dump(session_module_name("blah"));
18var_dump(session_module_name());
19var_dump(session_module_name("files"));
20var_dump(session_module_name());
21
22ob_end_flush();
23?>
24--EXPECTF--
25*** Testing session_set_save_handler() : variation ***
26string(%d) "%s"
27
28Warning: session_module_name(): Session handler module "" cannot be found in %s on line %d
29bool(false)
30string(%d) "%s"
31
32Warning: session_module_name(): Session handler module "blah" cannot be found in %s on line %d
33bool(false)
34string(%d) "%s"
35string(%d) "%s"
36string(5) "files"
37