summaryrefslogtreecommitdiff
path: root/src/tests/session_encryption/set_custom_session_handler2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/session_encryption/set_custom_session_handler2.phpt')
-rw-r--r--src/tests/session_encryption/set_custom_session_handler2.phpt26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/tests/session_encryption/set_custom_session_handler2.phpt b/src/tests/session_encryption/set_custom_session_handler2.phpt
new file mode 100644
index 0000000..18bc3f7
--- /dev/null
+++ b/src/tests/session_encryption/set_custom_session_handler2.phpt
@@ -0,0 +1,26 @@
1--TEST--
2Set a custom session handler, twice
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/config_crypt_session.ini
7session.save_path = "/tmp"
8--ENV--
9return <<<EOF
10REMOTE_ADDR=127.0.0.1
11EOF;
12--FILE--
13<?php
14session_set_save_handler(new SessionHandler(), true);
15session_start();
16$_SESSION['a'] = 'b';
17#var_dump($_SESSION);
18session_destroy();
19session_set_save_handler(new SessionHandler(), true);
20session_start();
21$_SESSION['a'] = 'b';
22var_dump($_SESSION);
23session_destroy();
24?>
25--EXPECTF--
26%a