1--TEST--
2Test session_set_save_handler() function : variation
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--FILE--
6<?php
7
8ob_start();
9
10echo "*** Testing session_set_save_handler() : variation ***\n";
11
12require_once "save_handler.inc";
13$path = __DIR__;
14session_save_path($path);
15var_dump(session_start());
16var_dump(session_set_save_handler("open", "close", "read", "write", "destroy", "gc"));
17var_dump(session_destroy());
18
19ob_end_flush();
20?>
21--EXPECTF--
22*** Testing session_set_save_handler() : variation ***
23bool(true)
24
25Warning: session_set_save_handler(): Session save handler cannot be changed when a session is active in %s on line %d
26bool(false)
27bool(true)
28