Bug #75308 [NEW]: Defining a session handler breaks the session
From: loranger at free dot fr
Operating system: Debian-docker
PHP version: 7.1.10
Package: Session related
Bug Type: Bug
Bug description:Defining a session handler breaks the session
Description:
------------
While trying to make my legacy code working with a brand new PHP 7.1
using debian, I discovered that defining a session handler breaks the
sessions a,nd throw the following warning:
âWarning: session_start(): Failed to read session data: user (path:
)â
I tried with an empty session_handler, using php 7.0 in order to
identify the source of the problem: It worked.
As soon as I upgrade to 7.1 (or 7.2 RC), my sessions stop working.
Test script:
---------------
https://gist.github.com/loranger/f57ce97e1a60d7d106835f07918f85f9
Actual result:
--------------
Warning: session_start(): Failed to read session data: user (path: ) in
index.php on line 49
--
Edit bug report at https://bugs.php.net/bug.php?id=75308&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75308&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75308&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75308&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75308&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75308&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75308&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75308&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75308&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75308&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75308&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75308&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75308&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75308&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75308&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75308&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75308&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75308&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75308&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75308&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75308&r=mysqlcfg
Thread (2 messages)
- loranger at free dot fr