summaryrefslogtreecommitdiff
path: root/ext/session/tests/013.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/session/tests/013.phpt')
-rw-r--r--ext/session/tests/013.phpt24
1 files changed, 24 insertions, 0 deletions
diff --git a/ext/session/tests/013.phpt b/ext/session/tests/013.phpt
new file mode 100644
index 0000000..8d0f284
--- /dev/null
+++ b/ext/session/tests/013.phpt
@@ -0,0 +1,24 @@
+--TEST--
+redefining SID should not cause warnings
+--SKIPIF--
+<?php include('skipif.inc'); ?>
+--INI--
+session.use_cookies=0
+session.cache_limiter=
+session.serialize_handler=php
+session.save_handler=files
+--FILE--
+<?php
+error_reporting(E_ALL);
+
+session_id("abtest");
+session_start();
+session_destroy();
+session_id("abtest2");
+session_start();
+session_destroy();
+
+print "I live\n";
+?>
+--EXPECT--
+I live