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
18ini_set("session.cache_expire", 360);
19var_dump(session_cache_expire());
20var_dump(session_cache_expire(1234567890));
21var_dump(session_cache_expire(180));
22var_dump(session_start());
23var_dump(session_cache_expire());
24var_dump(session_destroy());
25var_dump(session_cache_expire());
26
27echo "Done";
28ob_end_flush();
29?>
30--EXPECT--
31*** Testing session_cache_expire() : variation ***
32int(360)
33int(360)
34int(1234567890)
35bool(true)
36int(180)
37bool(true)
38int(180)
39Done
40