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