Bug #77384 [NEW]: Unable to change Session Save Handler to "user"
| From: | info at dreamtimeshop dot com | Date: | Sun, 30 Dec 2018 23:31:04 +0000 |
| Subject: | Bug #77384 [NEW]: Unable to change Session Save Handler to "user" | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-218693@lists.php.net to get a copy of this message | ||
From: info at dreamtimeshop dot com
Operating system: Windows, Linux
PHP version: 7.3.0
Package: Session related
Bug Type: Bug
Bug description:Unable to change Session Save Handler to "user"
Description:
------------
In the PHP 7.2 and 7.3, there is not possible to set "user" as Session
Save Handler.
1) unable to set it in php.ini:
The php.ini file includes line "session.save_handler = user".
phpinfo() says: "Registered save handlers: files user"
but below always shows "files" as current handler.
2) unable to change it in the scripts:
None ot those two pssibilities work:
session_module_name('user');
ini_set('session.save_handler', 'user');
Both of them throw a "Recoverable fatal error" which says "Cannot set
'user' save handler by ini_set() or session_module_name()"...
Tested on CentOS and Windows 10 with PHP 7.2.13 and PHP 7.3.0.
Older versions incl. PHP 7.1.15 are working as expected.
Test script:
---------------
<?php
session_module_name('user');
ini_set('session.save_handler', 'user');
?>
Expected result:
----------------
(nothing)
Actual result:
--------------
Recoverable fatal error: session_module_name(): Cannot set 'user' save
handler by ini_set() or session_module_name() in ...
--
Edit bug report at https://bugs.php.net/bug.php?id=77384&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77384&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77384&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77384&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77384&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77384&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77384&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77384&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77384&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77384&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77384&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77384&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77384&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77384&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77384&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77384&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77384&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77384&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77384&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77384&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77384&r=mysqlcfg