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"
34
35Warning: session_cache_limiter(): Cannot change cache limiter when session is active in %s on line 16
36bool(false)
37string(7) "nocache"
38bool(true)
39string(7) "nocache"
40Done
41