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 18var_dump(session_id()); 19var_dump(session_id("test")); 20var_dump(session_id()); 21var_dump(session_id("1234567890")); 22var_dump(session_id()); 23var_dump(session_start()); 24var_dump(session_id()); 25var_dump(session_destroy()); 26var_dump(session_id()); 27 28echo "Done"; 29ob_end_flush(); 30?> 31--EXPECTF-- 32*** Testing session_id() : basic functionality *** 33string(0) "" 34string(0) "" 35string(4) "test" 36string(4) "test" 37string(10) "1234567890" 38bool(true) 39string(10) "1234567890" 40bool(true) 41string(0) "" 42Done 43 44