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