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