blob: 5600d8269fbaa7954d8c1f69e26dbe194ef869b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
diff --git a/.travis.yml b/.travis.yml
index 213b493..bb5c9a8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,6 +7,7 @@ group: edge
php:
- 7.0
- 7.1
+ - 7.2
env:
- CC=gcc-4.8 CFLAGS=""
diff --git a/php_suhosin7.h b/php_suhosin7.h
index fb9cf90..2435196 100644
--- a/php_suhosin7.h
+++ b/php_suhosin7.h
@@ -23,8 +23,8 @@ extern zend_module_entry suhosin7_module_entry;
#define SUHOSIN7_EXT_VERSION "0.10.0dev"
-#if PHP_VERSION_ID < 70000 | PHP_VERSION_ID >= 70200
-#error Suhosin7 works with PHP 7.0 and 7.1 only! Looking for Suhosin for PHP 5.x? Take a look at https://www.suhosin.org/
+#if PHP_VERSION_ID < 70000 | PHP_VERSION_ID >= 70300
+#error Suhosin7 works with PHP 7.0 and 7.1 and 7.2 only! Looking for Suhosin for PHP 5.x? Take a look at https://www.suhosin.org/
#endif
#ifdef PHP_WIN32
diff --git a/tests/session/PHPSESSID_max_id_length_ok.phpt b/tests/session/PHPSESSID_max_id_length_ok.phpt
index 2673d08..5d7772f 100644
--- a/tests/session/PHPSESSID_max_id_length_ok.phpt
+++ b/tests/session/PHPSESSID_max_id_length_ok.phpt
@@ -5,6 +5,8 @@ PHPSESSID session id not too long
--INI--
suhosin.session.max_id_length=32
session.hash_bits_per_character=4
+session.sid_length=32
+session.sid_bits_per_character=4
--COOKIE--
PHPSESSID=12345678901234567890123456789012;
--FILE--
diff --git a/tests/session/PHPSESSID_max_id_length_toolong.phpt b/tests/session/PHPSESSID_max_id_length_toolong.phpt
index 6bd71fb..9909757 100644
--- a/tests/session/PHPSESSID_max_id_length_toolong.phpt
+++ b/tests/session/PHPSESSID_max_id_length_toolong.phpt
@@ -5,6 +5,8 @@ PHPSESSID session id too long
--INI--
suhosin.session.max_id_length=32
session.hash_bits_per_character=4
+session.sid_length=32
+session.sid_bits_per_character=4
--COOKIE--
PHPSESSID=123456789012345678901234567890123;
--FILE--
diff --git a/tests/session/max_id_length_ok.phpt b/tests/session/max_id_length_ok.phpt
index dbecebd..15f46a9 100644
--- a/tests/session/max_id_length_ok.phpt
+++ b/tests/session/max_id_length_ok.phpt
@@ -5,6 +5,8 @@ session id not too long
--INI--
suhosin.session.max_id_length=32
session.hash_bits_per_character=4
+session.sid_length=32
+session.sid_bits_per_character=4
session.use_strict_mode=0
--FILE--
<?php
diff --git a/tests/session/max_id_length_toolong.phpt b/tests/session/max_id_length_toolong.phpt
index a8ec4cc..a7dd652 100644
--- a/tests/session/max_id_length_toolong.phpt
+++ b/tests/session/max_id_length_toolong.phpt
@@ -5,6 +5,8 @@ session id too long
--INI--
suhosin.session.max_id_length=32
session.hash_bits_per_character=4
+session.sid_length=32
+session.sid_bits_per_character=4
--FILE--
<?php
session_id('123456789012345678901234567890123');
|