1--TEST--
2Test session_cache_expire() function : variation
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--FILE--
6<?php
7
8ob_start();
9
10/*
11 * Prototype : int session_cache_expire([int $new_cache_expire])
12 * Description : Return current cache expire
13 * Source code : ext/session/session.c
14 */
15
16echo "*** Testing session_cache_expire() : variation ***\n";
17
18var_dump(ini_get("session.cache_expire"));
19var_dump(session_cache_expire());
20var_dump(ini_get("session.cache_expire"));
21var_dump(session_cache_expire(1234567890));
22var_dump(ini_get("session.cache_expire"));
23var_dump(session_start());
24var_dump(session_cache_expire());
25var_dump(ini_get("session.cache_expire"));
26var_dump(session_destroy());
27var_dump(session_cache_expire());
28var_dump(ini_get("session.cache_expire"));
29
30echo "Done";
31ob_end_flush();
32?>
33--EXPECTF--
34*** Testing session_cache_expire() : variation ***
35string(3) "180"
36int(180)
37string(3) "180"
38int(180)
39string(10) "1234567890"
40bool(true)
41int(1234567890)
42string(10) "1234567890"
43bool(true)
44int(1234567890)
45string(10) "1234567890"
46Done
47
48