1--TEST--
2Test session_cache_expire() function : variation
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--FILE--
8<?php
9
10ob_start();
11
12echo "*** Testing session_cache_expire() : variation ***\n";
13
14var_dump(ini_get("session.cache_expire"));
15var_dump(session_cache_expire());
16var_dump(ini_get("session.cache_expire"));
17var_dump(session_cache_expire(1234567890));
18var_dump(ini_get("session.cache_expire"));
19var_dump(session_start());
20var_dump(session_cache_expire());
21var_dump(ini_get("session.cache_expire"));
22var_dump(session_destroy());
23var_dump(session_cache_expire());
24var_dump(ini_get("session.cache_expire"));
25
26echo "Done";
27ob_end_flush();
28?>
29--EXPECT--
30*** Testing session_cache_expire() : variation ***
31string(3) "180"
32int(180)
33string(3) "180"
34int(180)
35string(10) "1234567890"
36bool(true)
37int(1234567890)
38string(10) "1234567890"
39bool(true)
40int(1234567890)
41string(10) "1234567890"
42Done
43