1--TEST-- 2Test session_cache_limiter() function : variation 3--SKIPIF-- 4<?php include('skipif.inc'); ?> 5--FILE-- 6<?php 7 8ob_start(); 9 10echo "*** Testing session_cache_limiter() : variation ***\n"; 11 12ini_set("session.cache_limiter", "nocache"); 13var_dump(session_cache_limiter()); 14var_dump(session_start()); 15var_dump(session_cache_limiter()); 16var_dump(session_cache_limiter("public")); 17var_dump(session_cache_limiter()); 18var_dump(session_destroy()); 19var_dump(session_cache_limiter()); 20 21echo "Done"; 22ob_end_flush(); 23?> 24--EXPECTF-- 25*** Testing session_cache_limiter() : variation *** 26string(7) "nocache" 27bool(true) 28string(7) "nocache" 29 30Warning: session_cache_limiter(): Session cache limiter cannot be changed when a session is active in %s on line %d 31bool(false) 32string(7) "nocache" 33bool(true) 34string(7) "nocache" 35Done 36