Skip to content

Commit d601bd6

Browse files
committed
Adjusted error in mod_files
1 parent 77a133e commit d601bd6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ext/session/mod_files.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ static void ps_files_open(ps_files *data, /* const */ zend_string *key)
166166
ps_files_close(data);
167167

168168
if (php_session_valid_key(ZSTR_VAL(key)) == FAILURE) {
169-
php_error_docref(NULL, E_WARNING, "Session ID is too long or contains illegal characters. Only the A-Z, a-z, 0-9, \"-\", and \",\" characters are allowed");
170169
return;
171170
}
172171

ext/session/tests/rfc1867_sid_invalid.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ session_destroy();
5252
@unlink(__DIR__ . DIRECTORY_SEPARATOR . "rfc1867_sid_invalid.post.txt");
5353
?>
5454
--EXPECTF--
55-
Warning: PHP Request Startup: Session ID is too long or contains illegal characters. Only the A-Z, a-z, 0-9, "-", and "," characters are allowed in Unknown on line 0
55+
Warning: PHP Request Startup: Prefix cannot contain special characters. Only the A-Z, a-z, 0-9, "-", and "," characters are allowed in Unknown on line 0
5656

5757
Warning: PHP Request Startup: Failed to read session data: files (path: ) in Unknown on line 0
5858

5959
Warning: PHP Request Startup: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0
6060

61-
Warning: PHP Request Startup: Session ID is too long or contains illegal characters. Only the A-Z, a-z, 0-9, "-", and "," characters are allowed in Unknown on line 0
61+
Warning: PHP Request Startup: Prefix cannot contain special characters. Only the A-Z, a-z, 0-9, "-", and "," characters are allowed in Unknown on line 0
6262

6363
Warning: PHP Request Startup: Failed to read session data: files (path: ) in Unknown on line 0
6464

0 commit comments

Comments
 (0)