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"
36string(7) "nocache"
37string(6) "public"
38bool(true)
39string(6) "public"
40Done
41
42