1--TEST-- 2Test session_cache_limiter() function : variation 3--SKIPIF-- 4<?php include('skipif.inc'); ?> 5--FILE-- 6<?php 7 8ob_start(); 9 10/* 11 * Prototype : string session_cache_limiter([string $cache_limiter]) 12 * Description : Get and/or set the current cache limiter 13 * Source code : ext/session/session.c 14 */ 15 16echo "*** Testing session_cache_limiter() : variation ***\n"; 17 18ini_set("session.cache_limiter", "nocache"); 19var_dump(session_cache_limiter()); 20var_dump(session_start()); 21var_dump(session_cache_limiter()); 22var_dump(session_cache_limiter("public")); 23var_dump(session_cache_limiter()); 24var_dump(session_destroy()); 25var_dump(session_cache_limiter()); 26 27echo "Done"; 28ob_end_flush(); 29?> 30--EXPECTF-- 31*** Testing session_cache_limiter() : variation *** 32string(7) "nocache" 33bool(true) 34string(7) "nocache" 35 36Warning: session_cache_limiter(): Cannot change cache limiter when session is active in %s on line 17 37bool(false) 38string(7) "nocache" 39bool(true) 40string(7) "nocache" 41Done 42