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