1--TEST--
2Test session_cache_limiter() function : variation
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--INI--
8session.cache_limiter=nocache
9--FILE--
10<?php
11
12ob_start();
13
14echo "*** Testing session_cache_limiter() : variation ***\n";
15
16var_dump(session_cache_limiter());
17var_dump(session_start());
18var_dump(session_cache_limiter());
19var_dump(session_cache_limiter("public"));
20var_dump(session_cache_limiter());
21var_dump(session_destroy());
22var_dump(session_cache_limiter());
23
24echo "Done";
25ob_end_flush();
26?>
27--EXPECTF--
28*** Testing session_cache_limiter() : variation ***
29string(7) "nocache"
30bool(true)
31string(7) "nocache"
32
33Warning: session_cache_limiter(): Session cache limiter cannot be changed when a session is active (started from %s on line %d) in %s on line %d
34bool(false)
35string(7) "nocache"
36bool(true)
37string(7) "nocache"
38Done
39