1--TEST-- 2Test session_name() function : variation 3--INI-- 4session.save_path= 5session.name=PHPSESSID 6session.save_handler=files 7--EXTENSIONS-- 8session 9--SKIPIF-- 10<?php include('skipif.inc'); ?> 11--FILE-- 12<?php 13 14ob_start(); 15 16echo "*** Testing session_name() : variation ***\n"; 17 18var_dump(session_name("\t")); 19var_dump(session_start()); 20var_dump(session_name()); 21var_dump(session_destroy()); 22var_dump(session_name()); 23 24var_dump(session_name("")); 25var_dump(session_start()); 26var_dump(session_name()); 27var_dump(session_destroy()); 28var_dump(session_name()); 29 30echo "Done"; 31ob_end_flush(); 32?> 33--EXPECTF-- 34*** Testing session_name() : variation *** 35string(9) "PHPSESSID" 36 37Warning: session_start(): session.name cannot contain any of the following '=,;.[ \t\r\n\013\014' in %s on line %d 38bool(true) 39string(1) " " 40bool(true) 41string(1) " " 42 43Warning: session_name(): session.name "" cannot be numeric or empty in %s on line %d 44string(1) " " 45 46Warning: session_start(): session.name cannot contain any of the following '=,;.[ \t\r\n\013\014' in %s on line %d 47bool(true) 48string(1) " " 49bool(true) 50string(1) " " 51Done 52