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
14require_once "save_handler.inc";
15$path = __DIR__ . '/session_set_save_handler_variation2';
16@mkdir($path);
17session_save_path($path);
18var_dump(session_start());
19var_dump(session_set_save_handler("open", "close", "read", "write", "destroy", "gc"));
20var_dump(session_destroy());
21
22ob_end_flush();
23rmdir($path);
24?>
25--EXPECTF--
26*** Testing session_set_save_handler() : variation ***
27bool(true)
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