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