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