Bug #71243 [NEW]: session_start() returns true, even for invalid session ids

From: Date: Wed, 30 Dec 2015 10:14:21 +0000
Subject: Bug #71243 [NEW]: session_start() returns true, even for invalid session ids
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198309@lists.php.net to get a copy of this message
From:             maggus dot staab at googlemail dot com
Operating system: Ubuntu12 lts
PHP version:      Irrelevant
Package:          Session related
Bug Type:         Bug
Bug description:session_start() returns true, even for invalid session ids

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)

-- 
Edit bug report at https://bugs.php.net/bug.php?id=71243&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=71243&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=71243&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=71243&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=71243&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=71243&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=71243&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=71243&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=71243&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=71243&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=71243&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=71243&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=71243&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=71243&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71243&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=71243&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=71243&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=71243&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71243&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=71243&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=71243&r=mysqlcfg



Thread (6 messages)

« previous php.bugs (#198309) next »