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