1--TEST--
2Test session_set_save_handler() function : variation
3--EXTENSIONS--
4session
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__ . '/session_set_save_handler_variation2';
14@mkdir($path);
15session_save_path($path);
16var_dump(session_start());
17var_dump(session_set_save_handler("open", "close", "read", "write", "destroy", "gc"));
18var_dump(session_destroy());
19
20ob_end_flush();
21?>
22--CLEAN--
23<?php
24$path = __DIR__ . '/session_set_save_handler_variation2';
25rmdir($path);
26?>
27--EXPECTF--
28*** Testing session_set_save_handler() : variation ***
29bool(true)
30
31Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
32
33Warning: session_set_save_handler(): Session save handler cannot be changed when a session is active (started from %s on line %d) in %s on line %d
34bool(false)
35bool(true)
36