1--TEST--
2Test session_set_save_handler() : calling default handler when save_handler=user
3--INI--
4session.save_handler=user
5session.name=PHPSESSID
6--SKIPIF--
7<?php include('skipif.inc'); ?>
8--FILE--
9<?php
10
11ob_start();
12
13/*
14 * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
15 * Description : Sets user-level session storage functions
16 * Source code : ext/session/session.c
17 */
18
19echo "*** Testing session_set_save_handler() : calling default handler when save_handler=user ***\n";
20
21$oldHandler = ini_get('session.save_handler');
22$handler = new SessionHandler;
23session_set_save_handler($handler);
24
25session_start();
26--EXPECTF--
27*** Testing session_set_save_handler() : calling default handler when save_handler=user ***
28
29Fatal error: SessionHandler::open(): Cannot call default session handler in %s on line %d
30