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