summaryrefslogtreecommitdiff
path: root/ext/session/tests/bug61470.phpt
blob: 3dc068b67342743a587911a21f3d5013408079f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Bug #61470 (session_regenerate_id() does not create session file)
--SKIPIF--
<?php include('skipif.inc'); ?>
--INI--
--FILE--
<?php
$path = ini_get('session.save_path') . '/sess_';

ob_start();
session_start();
// starts session & creates and locks file
var_dump(is_file($path . session_id()));

session_regenerate_id();
// starts new session, but file is not create!
var_dump(is_file($path . session_id()));
--EXPECT--
bool(true);
bool(true);