1--TEST-- 2Test session_commit() function : variation 3--SKIPIF-- 4<?php include('skipif.inc'); ?> 5--INI-- 6session.use_strict_mode=0 7--FILE-- 8<?php 9 10ob_start(); 11 12echo "*** Testing session_commit() : variation ***\n"; 13 14$id = md5(uniqid()); 15var_dump(session_id($id)); 16var_dump(session_start()); 17var_dump(session_id()); 18var_dump($id === session_id()); 19var_dump(session_commit()); 20var_dump($id === session_id()); 21var_dump(session_id()); 22var_dump(session_start()); 23var_dump($id === session_id()); 24var_dump(session_id()); 25var_dump(session_commit()); 26var_dump($id === session_id()); 27var_dump(session_id()); 28var_dump(session_start()); 29var_dump($id === session_id()); 30var_dump(session_id()); 31var_dump(session_commit()); 32var_dump($id === session_id()); 33var_dump(session_id()); 34var_dump(session_start()); 35var_dump(session_destroy()); 36 37echo "Done"; 38ob_end_flush(); 39?> 40--EXPECTF-- 41*** Testing session_commit() : variation *** 42string(0) "" 43bool(true) 44string(32) "%s" 45bool(true) 46bool(true) 47bool(true) 48string(32) "%s" 49bool(true) 50bool(true) 51string(32) "%s" 52bool(true) 53bool(true) 54string(32) "%s" 55bool(true) 56bool(true) 57string(32) "%s" 58bool(true) 59bool(true) 60string(32) "%s" 61bool(true) 62bool(true) 63Done 64