1--TEST--
2Test session_set_cookie_params() function : basic functionality
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--FILE--
6<?php
7
8ob_start();
9
10/*
11 * Prototype : void session_set_cookie_params(int $lifetime [, string $path [, string $domain [, bool $secure [, bool $httponly]]]])
12 * Description : Set the session cookie parameters
13 * Source code : ext/session/session.c
14 */
15
16echo "*** Testing session_set_cookie_params() : basic functionality ***\n";
17
18var_dump(session_set_cookie_params(3600));
19var_dump(session_start());
20var_dump(session_set_cookie_params(1800));
21var_dump(session_destroy());
22var_dump(session_set_cookie_params(1234567890));
23
24echo "Done";
25ob_end_flush();
26?>
27--EXPECTF--
28*** Testing session_set_cookie_params() : basic functionality ***
29bool(true)
30bool(true)
31
32Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in %s on line 15
33bool(false)
34bool(true)
35bool(true)
36Done
37