1--TEST-- 2Test session_cache_limiter() function : basic functionality 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() : basic functionality ***\n"; 17 18var_dump(session_cache_limiter()); 19var_dump(session_cache_limiter("public")); 20var_dump(session_cache_limiter()); 21var_dump(session_start()); 22var_dump(session_destroy()); 23 24var_dump(session_cache_limiter()); 25var_dump(session_cache_limiter("private")); 26var_dump(session_cache_limiter()); 27var_dump(session_start()); 28var_dump(session_destroy()); 29 30var_dump(session_cache_limiter()); 31var_dump(session_cache_limiter("nocache")); 32var_dump(session_cache_limiter()); 33var_dump(session_start()); 34var_dump(session_destroy()); 35 36var_dump(session_cache_limiter()); 37var_dump(session_cache_limiter("private_no_expire")); 38var_dump(session_cache_limiter()); 39var_dump(session_start()); 40var_dump(session_destroy()); 41 42echo "Done"; 43ob_end_flush(); 44?> 45--EXPECTF-- 46*** Testing session_cache_limiter() : basic functionality *** 47string(7) "nocache" 48string(7) "nocache" 49string(6) "public" 50bool(true) 51bool(true) 52string(6) "public" 53string(6) "public" 54string(7) "private" 55bool(true) 56bool(true) 57string(7) "private" 58string(7) "private" 59string(7) "nocache" 60bool(true) 61bool(true) 62string(7) "nocache" 63string(7) "nocache" 64string(17) "private_no_expire" 65bool(true) 66bool(true) 67Done 68