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