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