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