summaryrefslogtreecommitdiff
path: root/ext/session/tests/bug74833.phpt
blob: 6a50708b379c38ecf758c78b302d8788c6ccf194 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Bug #74833 Session module number is uninitialized when SID is reset
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php

ob_start();

session_start();
session_regenerate_id();
$c = get_defined_constants(true);
/* Ensure the SID constant has correct module number. */
var_dump(isset($c['session']['SID']));

ob_end_flush();
?>
==DONE==
--EXPECTF--
bool(true)
==DONE==