summaryrefslogtreecommitdiff
path: root/ext/session/tests/bug74833.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/session/tests/bug74833.phpt')
-rw-r--r--ext/session/tests/bug74833.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/session/tests/bug74833.phpt b/ext/session/tests/bug74833.phpt
new file mode 100644
index 0000000000..5a0eda71f7
--- /dev/null
+++ b/ext/session/tests/bug74833.phpt
@@ -0,0 +1,22 @@
+--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==
+