1--TEST--
2Test session_abort() function : basic functionality
3--SKIPIF--
4<?php include('skipif.inc'); ?>
5--INI--
6session.save_path=
7session.name=PHPSESSID
8session.save_handler=files
9--FILE--
10<?php
11
12ob_start();
13
14echo "*** Testing session_abort() : basic functionality ***\n";
15
16session_start();
17$session_id = session_id();
18$_SESSION['foo'] = 123;
19session_commit();
20
21session_id($session_id);
22session_start();
23$_SESSION['bar'] = 456;
24var_dump($_SESSION);
25session_abort();
26
27session_id($session_id);
28session_start();
29var_dump($_SESSION); // Should only have 'foo'
30
31echo "Done".PHP_EOL;
32
33?>
34--EXPECT--
35*** Testing session_abort() : basic functionality ***
36array(2) {
37  ["foo"]=>
38  int(123)
39  ["bar"]=>
40  int(456)
41}
42array(1) {
43  ["foo"]=>
44  int(123)
45}
46Done
47