1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/session/tests/bug74833.phpt
2021-06-11 16:27:50 +02:00

22 lines
386 B
PHP

--TEST--
Bug #74833 Session module number is uninitialized when SID is reset
--EXTENSIONS--
session
--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();
?>
--EXPECT--
bool(true)