|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-12-30 10:14 UTC] maggus dot staab at googlemail dot com
Description: ------------ session_start() returns true, even if the configured session_id() is invalid. This is similar to https://bugs.php.net/bug.php?id=65795 but I guess the cause is different. Test script: --------------- https://3v4l.org/HXRoR session_id('öäü'); var_dump(session_start()); Expected result: ---------------- Warning: The session id contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in /in/HXRoR on line 4 bool(false) Actual result: -------------- Warning: The session id contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in /in/HXRoR on line 4 bool(true) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
I have to kill broken save handler implementations also. i.e. BC static void php_session_initialize(TSRMLS_D **SNIP** if (PS(mod)->s_read(&PS(mod_data), PS(id), &val, &vallen TSRMLS_CC) == FAILURE) { /* Some broken save handler implementation returns FAILURE for non-existent session ID */ /* It's better to raise error for this, but disabled error for better compatibility */ /* php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Failed to read session data: %s (path: %s)", PS(mod)->s_name, PS(save_path)); */ }