1--TEST--
2Test session_cache_limiter() function : basic functionality
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--FILE--
8<?php
9
10ob_start();
11
12echo "*** Testing session_cache_limiter() : basic functionality ***\n";
13
14var_dump(session_cache_limiter());
15var_dump(session_cache_limiter("public"));
16var_dump(session_cache_limiter());
17var_dump(session_start());
18var_dump(session_destroy());
19
20var_dump(session_cache_limiter());
21var_dump(session_cache_limiter("private"));
22var_dump(session_cache_limiter());
23var_dump(session_start());
24var_dump(session_destroy());
25
26var_dump(session_cache_limiter());
27var_dump(session_cache_limiter("nocache"));
28var_dump(session_cache_limiter());
29var_dump(session_start());
30var_dump(session_destroy());
31
32var_dump(session_cache_limiter());
33var_dump(session_cache_limiter("private_no_expire"));
34var_dump(session_cache_limiter());
35var_dump(session_start());
36var_dump(session_destroy());
37
38echo "Done";
39ob_end_flush();
40?>
41--EXPECT--
42*** Testing session_cache_limiter() : basic functionality ***
43string(7) "nocache"
44string(7) "nocache"
45string(6) "public"
46bool(true)
47bool(true)
48string(6) "public"
49string(6) "public"
50string(7) "private"
51bool(true)
52bool(true)
53string(7) "private"
54string(7) "private"
55string(7) "nocache"
56bool(true)
57bool(true)
58string(7) "nocache"
59string(7) "nocache"
60string(17) "private_no_expire"
61bool(true)
62bool(true)
63Done
64