summaryrefslogtreecommitdiff
path: root/ext/session/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ext/session/tests')
-rw-r--r--ext/session/tests/015.phpt21
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/session/tests/015.phpt b/ext/session/tests/015.phpt
new file mode 100644
index 0000000000..f41294d867
--- /dev/null
+++ b/ext/session/tests/015.phpt
@@ -0,0 +1,21 @@
+--TEST--
+use_trans_sid should not affect SID
+--SKIPIF--
+<?php include('skipif.inc'); ?>
+--INI--
+session.use_trans_sid=1
+session.use_cookies=0
+session.cache_limiter=
+--FILE--
+<?php
+error_reporting(E_ALL);
+
+session_id("abtest");
+session_start();
+?>
+<a href="/link?<?php echo SID; ?>">
+<?php
+session_destroy();
+?>
+--EXPECT--
+<a href="/link?PHPSESSID=abtest&PHPSESSID=abtest">