summaryrefslogtreecommitdiff
path: root/tests/session/max_id_length_ok.phpt
diff options
context:
space:
mode:
authorStefan Esser2014-02-15 12:13:19 +0100
committerStefan Esser2014-02-15 12:13:19 +0100
commit71c70de8df61ff1446efb1c168d3c2deccf58586 (patch)
treec157eb11e83912026f2f4fbe72681d0c729ad92b /tests/session/max_id_length_ok.phpt
parentd556e8afdd33cbe89ed2f3f4e2d0700e495dadc9 (diff)
Add a bunch of session id / session encryption tests from Ben.
Diffstat (limited to 'tests/session/max_id_length_ok.phpt')
-rw-r--r--tests/session/max_id_length_ok.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/session/max_id_length_ok.phpt b/tests/session/max_id_length_ok.phpt
new file mode 100644
index 0000000..9f91c94
--- /dev/null
+++ b/tests/session/max_id_length_ok.phpt
@@ -0,0 +1,14 @@
1--TEST--
2session id not too long
3--SKIPIF--
4<?php include "../skipifcli.inc"; ?>
5--INI--
6suhosin.session.max_id_length=32
7--FILE--
8<?php
9session_id('12345678901234567890123456789012');
10session_start();
11echo session_id();
12?>
13--EXPECTF--
1412345678901234567890123456789012 \ No newline at end of file