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 12var_dump(ini_get("session.cache_limiter")); 13var_dump(session_start()); 14var_dump(ini_get("session.cache_limiter")); 15var_dump(session_cache_limiter("public")); 16var_dump(ini_get("session.cache_limiter")); 17var_dump(session_destroy()); 18var_dump(ini_get("session.cache_limiter")); 19 20echo "Done"; 21ob_end_flush(); 22?> 23--EXPECTF-- 24*** Testing session_cache_limiter() : variation *** 25string(7) "nocache" 26bool(true) 27string(7) "nocache" 28 29Warning: session_cache_limiter(): Session cache limiter cannot be changed when a session is active in %s on line %d 30bool(false) 31string(7) "nocache" 32bool(true) 33string(7) "nocache" 34Done 35