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-1Lines changed: 1 addition & 1 deletion
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-1Lines changed: 1 addition & 1 deletion
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-1Lines changed: 1 addition & 1 deletion
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-1Lines changed: 1 addition & 1 deletion
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-2Lines changed: 2 additions & 2 deletions
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-1Lines changed: 1 addition & 1 deletion
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
0 commit comments