1--TEST--
2Test session_set_save_handler() function : variation
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--FILE--
6<?php
7
8ob_start();
9
10/*
11 * Prototype : bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, callback $destroy, callback $gc)
12 * Description : Sets user-level session storage functions
13 * Source code : ext/session/session.c
14 */
15
16echo "*** Testing session_set_save_handler() : variation ***\n";
17
18require_once "save_handler.inc";
19$path = dirname(__FILE__);
20session_save_path($path);
21var_dump(session_start());
22var_dump(session_set_save_handler("open", "close", "read", "write", "destroy", "gc"));
23var_dump(session_destroy());
24
25ob_end_flush();
26?>
27--EXPECTF--
28*** Testing session_set_save_handler() : variation ***
29bool(true)
30
31Warning: session_set_save_handler(): Cannot change save handler when session is active in %s on line 17
32bool(false)
33bool(true)
34