1--TEST--
2Test session_start() function : variation
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--FILE--
6<?php
7
8ob_start();
9
10/*
11 * Prototype : bool session_start(void)
12 * Description : Initialize session data
13 * Source code : ext/session/session.c
14 */
15
16echo "*** Testing session_start() : variation ***\n";
17
18var_dump(session_start());
19var_dump(session_start());
20var_dump(session_start());
21var_dump(session_start());
22var_dump(session_start());
23
24session_destroy();
25echo "Done";
26ob_end_flush();
27?>
28--EXPECTF--
29*** Testing session_start() : variation ***
30bool(true)
31
32Notice: A session had already been started - ignoring session_start() in %s on line %d
33bool(true)
34
35Notice: A session had already been started - ignoring session_start() in %s on line %d
36bool(true)
37
38Notice: A session had already been started - ignoring session_start() in %s on line %d
39bool(true)
40
41Notice: A session had already been started - ignoring session_start() in %s on line %d
42bool(true)
43Done
44
45