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