1--TEST--
2Test session_id() function : basic functionality
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--FILE--
8<?php
9
10ob_start();
11
12echo "*** Testing session_id() : basic functionality ***\n";
13
14ini_set('session.sid_bits_per_character', 6);
15ini_set('session.sid_length', 120);
16session_start();
17var_dump(session_id());
18session_commit();
19
20ini_set('session.sid_bits_per_character', 4);
21ini_set('session.sid_length', 22);
22session_start();
23session_regenerate_id();
24var_dump(session_id());
25session_commit();
26
27echo "Done";
28?>
29--EXPECTF--
30*** Testing session_id() : basic functionality ***
31
32Deprecated: ini_set(): session.sid_bits_per_character INI setting is deprecated in %s on line %d
33
34Deprecated: ini_set(): session.sid_length INI setting is deprecated in %s on line %d
35string(120) "%s"
36
37Deprecated: ini_set(): session.sid_length INI setting is deprecated in %s on line %d
38string(22) "%s"
39Done
40