1--TEST--
2Test session_set_save_handler() function : variation
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--FILE--
6<?php
7
8ob_start();
9
10/*
11 * Prototype : bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, callback $destroy, callback $gc)
12 * Description : Sets user-level session storage functions
13 * Source code : ext/session/session.c
14 */
15
16echo "*** Testing session_set_save_handler() : variation ***\n";
17
18var_dump(session_module_name());
19var_dump(session_module_name(FALSE));
20var_dump(session_module_name());
21var_dump(session_module_name("blah"));
22var_dump(session_module_name());
23var_dump(session_module_name("files"));
24var_dump(session_module_name());
25
26ob_end_flush();
27?>
28--EXPECTF--
29*** Testing session_set_save_handler() : variation ***
30string(%d) "%s"
31
32Warning: session_module_name(): Cannot find named PHP session module () in %s on line %d
33bool(false)
34string(%d) "%s"
35
36Warning: session_module_name(): Cannot find named PHP session module (blah) in %s on line %d
37bool(false)
38string(%d) "%s"
39string(%d) "%s"
40string(5) "files"
41