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