You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use php_error_docref() instead of zend_error() in session.c (GH-15505)
Using `php_error_docref()` is preferable since it outputs additional
details (which function has been called and whether it is a startup or
shutdown error), uses HTML markup, and also provides a link to the
documentation, if configured.
Since these deprecation warnings have been introduced recently[1][2],
i.e. for PHP 8.4, there are no BC concerns.
[1] <e8ff7c7>
[2] <b36eac9>
Co-authored-by: Máté Kocsis <[email protected]>
Copy file name to clipboardExpand all lines: ext/session/tests/user_session_module/bug31454.phpt
+1-1
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,6 @@ try {
21
21
echo"Done\n";
22
22
?>
23
23
--EXPECTF--
24
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
24
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
25
25
session_set_save_handler(): Argument #1 ($open) must be a valid callback, first array member is not a valid class name or object
Copy file name to clipboardExpand all lines: ext/session/tests/user_session_module/bug60634_error_3.phpt
+1-1
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ session_start();
42
42
43
43
?>
44
44
--EXPECTF--
45
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
45
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
46
46
write: goodbye cruel world
47
47
48
48
Fatal error: Uncaught Error: Call to undefined function undefined_function() in %s:%d
Copy file name to clipboardExpand all lines: ext/session/tests/user_session_module/bug60634_error_4.phpt
+1-1
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ session_start();
37
37
38
38
?>
39
39
--EXPECTF--
40
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
40
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
34
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
35
35
36
36
Warning: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent in %s on line %d
Copy file name to clipboardExpand all lines: ext/session/tests/user_session_module/gh7787.phpt
+1-1
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ Warning: session_write_close(): Failed to write session data using user defined
82
82
83
83
Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: %S, handler: MySessionHandler::updateTimestamp) in %s on line %d
84
84
85
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
85
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
86
86
87
87
Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: %S, handler: write) in %s on line %d
Copy file name to clipboardExpand all lines: ext/session/tests/user_session_module/session_set_save_handler_basic.phpt
+2-2
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ bool(false)
75
75
Warning: session_module_name(): Session handler module "foo" cannot be found in %s on line %d
76
76
bool(false)
77
77
78
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
78
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
79
79
Open [%s,PHPSESSID]
80
80
Read [%s,%s]
81
81
array(3) {
@@ -98,7 +98,7 @@ array(3) {
98
98
}
99
99
Starting session again..!
100
100
101
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
101
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
Copy file name to clipboardExpand all lines: ext/session/tests/user_session_module/session_set_save_handler_class_002.phpt
+1-1
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ session_unset();
87
87
--EXPECTF--
88
88
*** Testing session_set_save_handler() : full handler implementation ***
89
89
90
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
90
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
Copy file name to clipboardExpand all lines: ext/session/tests/user_session_module/session_set_save_handler_closures.phpt
+2-2
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ bool(false)
62
62
Warning: session_module_name(): Session handler module "foo" cannot be found in %s on line %d
63
63
bool(false)
64
64
65
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
65
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
66
66
Open [%s,PHPSESSID]
67
67
Read [%s,%s]
68
68
array(3) {
@@ -85,7 +85,7 @@ array(3) {
85
85
}
86
86
Starting session again..!
87
87
88
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
88
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
32
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
33
33
34
34
Fatal error: Uncaught Exception: Do something bad..! in %s:%d
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
58
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
59
59
60
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
60
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
61
61
session_set_save_handler(): Argument #2 ($close) must be a valid callback, function "echo" not found or invalid function name
62
62
63
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
63
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
64
64
session_set_save_handler(): Argument #3 ($read) must be a valid callback, function "echo" not found or invalid function name
65
65
66
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
66
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
67
67
session_set_save_handler(): Argument #4 ($write) must be a valid callback, function "echo" not found or invalid function name
68
68
69
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
69
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
70
70
session_set_save_handler(): Argument #5 ($destroy) must be a valid callback, function "echo" not found or invalid function name
71
71
72
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
72
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
73
73
session_set_save_handler(): Argument #6 ($gc) must be a valid callback, function "echo" not found or invalid function name
74
74
75
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
75
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
76
76
77
77
Warning: session_start(): Failed to read session data: user (%s) in %s on line %d
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
86
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
84
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
85
85
bool(true)
86
86
session_set_save_handler(): Argument #1 ($open) must be of type SessionHandlerInterface, MySession2 given
Copy file name to clipboardExpand all lines: ext/session/tests/user_session_module/session_set_save_handler_multiple.phpt
+2-2
Original file line number
Diff line number
Diff line change
@@ -73,15 +73,15 @@ session_write_close();
73
73
ob_end_flush();
74
74
?>
75
75
--EXPECTF--
76
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
76
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
77
77
Open
78
78
Create SID OLD
79
79
Read
80
80
Write
81
81
Close
82
82
New handlers:
83
83
84
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
84
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
76
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
Copy file name to clipboardExpand all lines: ext/session/tests/user_session_module/session_set_save_handler_type_error.phpt
+4-4
Original file line number
Diff line number
Diff line change
@@ -43,19 +43,19 @@ ob_end_flush();
43
43
44
44
?>
45
45
--EXPECTF--
46
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
46
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
47
47
Session callback must have a return value of type bool, array returned
48
48
49
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
49
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
50
50
51
51
Deprecated: session_start(): Session callback must have a return value of type bool, int returned in %s on line %d
52
52
53
53
Warning: session_start(): Failed to read session data: user (%s) in %s on line %d
54
54
55
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
55
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
56
56
Session callback must have a return value of type bool, array returned
57
57
58
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
58
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
59
59
60
60
Deprecated: session_start(): Session callback must have a return value of type bool, int returned in %s on line %d
Copy file name to clipboardExpand all lines: ext/session/tests/user_session_module/session_set_save_handler_type_error2.phpt
+2-2
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,8 @@ ob_end_flush();
28
28
29
29
?>
30
30
--EXPECTF--
31
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
31
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
32
32
Session callback must have a return value of type bool, null returned
33
33
34
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
34
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
35
35
Session callback must have a return value of type bool, int returned
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
31
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
32
32
33
33
Warning: session_set_save_handler(): Session save handler cannot be changed when a session is active in %s on line %d
Copy file name to clipboardExpand all lines: ext/session/tests/user_session_module/session_set_save_handler_variation3.phpt
+1-1
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ int(2)
31
31
32
32
Warning: session_save_path(): Session save path cannot be changed when a session is active in %s on line %d
33
33
34
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
34
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
35
35
36
36
Warning: session_set_save_handler(): Session save handler cannot be changed when a session is active in %s on line %d
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
54
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
71
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
Copy file name to clipboardExpand all lines: ext/session/tests/user_session_module/session_set_save_handler_variation5.phpt
+2-2
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ rmdir($path);
59
59
string(0) ""
60
60
*** Without lazy_write ***
61
61
62
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
62
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
63
63
bool(true)
64
64
Open [%s,PHPSESSID]
65
65
CreateID [PHPT-%d]
@@ -75,7 +75,7 @@ string(%d) "PHPT-%d"
75
75
*** With lazy_write ***
76
76
string(%d) "PHPT-%d"
77
77
78
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
78
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
Copy file name to clipboardExpand all lines: ext/session/tests/user_session_module/session_set_save_handler_variation6.phpt
+3-3
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ rmdir($path);
63
63
--EXPECTF--
64
64
*** Testing session_set_save_handler() : test write short circuit ***
65
65
66
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
66
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
67
67
Open [%s,PHPSESSID]
68
68
CreateID [PHPT-%s]
69
69
Read [%s,%s]
@@ -87,7 +87,7 @@ array(3) {
87
87
}
88
88
Starting session again..!
89
89
90
-
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
90
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
Deprecated: Calling session_set_save_handler() with more than 2 arguments is deprecated in %s on line %d
105
+
Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in %s on line %d
0 commit comments