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