--TEST--
Test session_set_save_handler() : default object
--INI--
session.save_handler=files
session.name=PHPSESSID
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php

ob_start
();

/* 
 * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
 * Description : Sets user-level session storage functions
 * Source code : ext/session/session.c 
 */

echo "*** Testing session_set_save_handler() : default object ***\n";

session_set_save_handler(new SessionHandler);
session_start();

$_SESSION['foo'] = "hello";

var_dump(session_id(), ini_get('session.save_handler'), $_SESSION);

session_write_close();
session_unset();
session_start();

var_dump($_SESSION);

session_write_close();
session_unset();

--
EXPECTF--
*** 
Testing session_set_save_handler() : default object ***
string(%d"%s"
string(4"user"
array(1) {
  [
"foo"]=>
  
string(5"hello"
}
array(
1) {
  [
"foo"]=>
  
string(5"hello"
}