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
12/*
13 * Prototype : bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, callback $destroy, callback $gc)
14 * Description : Sets user-level session storage functions
15 * Source code : ext/session/session.c
16 */
17
18echo "*** Testing session_set_save_handler() : variation ***\n";
19
20require_once "save_handler.inc";
21$path = dirname(__FILE__);
22session_save_path($path);
23var_dump(session_set_save_handler("open", "close", "read", "write", "destroy", "gc"));
24var_dump(session_destroy());
25
26ob_end_flush();
27?>
28--EXPECTF--
29*** Testing session_set_save_handler() : variation ***
30
31bool(false)
32bool(true)
33
34