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