1--TEST-- 2Test session_regenerate_id() function : basic functionality 3--EXTENSIONS-- 4session 5--SKIPIF-- 6<?php include('skipif.inc'); ?> 7--FILE-- 8<?php 9 10ob_start(); 11 12echo "*** Testing session_regenerate_id() : basic functionality ***\n"; 13 14var_dump(session_id()); 15var_dump(session_regenerate_id()); 16var_dump(session_id()); 17var_dump(session_start()); 18var_dump(session_regenerate_id()); 19var_dump(session_id()); 20var_dump(session_destroy()); 21var_dump(session_regenerate_id()); 22var_dump(session_id()); 23 24echo "Done"; 25ob_end_flush(); 26?> 27--EXPECTF-- 28*** Testing session_regenerate_id() : basic functionality *** 29string(0) "" 30 31Warning: session_regenerate_id(): Session ID cannot be regenerated when there is no active session in %s on line %d 32bool(false) 33string(0) "" 34bool(true) 35bool(true) 36string(%d) "%s" 37bool(true) 38 39Warning: session_regenerate_id(): Session ID cannot be regenerated when there is no active session in %s on line %d 40bool(false) 41string(0) "" 42Done 43