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