1--TEST--
2Test session_start() function : variation
3--EXTENSIONS--
4session
5--SKIPIF--
6<?php include('skipif.inc'); ?>
7--INI--
8session.auto_start=1
9--FILE--
10<?php
11
12ob_start();
13
14echo "*** Testing session_start() : variation ***\n";
15
16var_dump(session_id());
17var_dump(session_start());
18var_dump(session_id());
19var_dump(session_destroy());
20var_dump(session_id());
21
22echo "Done";
23ob_end_flush();
24?>
25--EXPECTF--
26*** Testing session_start() : variation ***
27string(%d) "%s"
28
29Notice: session_start(): Ignoring session_start() because a session is already active (session started automatically) in %s on line %d
30bool(true)
31string(%d) "%s"
32bool(true)
33string(0) ""
34Done
35