1--TEST--
2Test session_id() function : error functionality
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--INI--
6session.hash_function=0
7session.hash_bits_per_character=4
8--FILE--
9<?php
10
11ob_start();
12
13/*
14 * Prototype : string session_id([string $id])
15 * Description : Get and/or set the current session id
16 * Source code : ext/session/session.c
17 */
18
19echo "*** Testing session_id() : error functionality ***\n";
20
21var_dump(ini_set("session.hash_function", -1));
22var_dump(session_id());
23var_dump(session_start());
24var_dump(session_id());
25var_dump(session_destroy());
26
27echo "Done";
28ob_end_flush();
29?>
30--EXPECTF--
31*** Testing session_id() : error functionality ***
32string(1) "0"
33string(0) ""
34bool(true)
35string(40) "%s"
36bool(true)
37Done
38