Doc #75140 [NEW]: session_id max length off 255 is too long with filesystem save handler
| From: | sebastian dot rapetti at alice dot it | Date: | Thu, 31 Aug 2017 18:20:50 +0000 |
| Subject: | Doc #75140 [NEW]: session_id max length off 255 is too long with filesystem save handler | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-14943@lists.php.net to get a copy of this message | ||
From: sebastian dot rapetti at alice dot it
Operating system: Ubuntu 16.04
PHP version: 7.1.8
Package: Session related
Bug Type: Documentation Problem
Bug description:session_id max length off 255 is too long with filesystem save handler
Description:
------------
Hi
With default filesystem session handler:
When use a custom session_id length as provided from php 7.1 with the
options session.sid_length and set the value near the max value
(251..255), operation fails. OS cannot create the file for store session
values because file name is too long.
Test script:
---------------
//session.sid_bits_per_character default value 4
//work, file system has the 5 characters for the sess_ file name part.
ini_set('session.sid_length', '250');
session_start();
//error from 251 to 255
ini_set('session.sid_length', '251');
session_start();
Expected result:
----------------
No error
Actual result:
--------------
With 251
Warning: session_start():
open(/var/lib/php/sessions/sess_ld3d1ome3tco3348uml0d4jpm4761n3i8lqui62t0aapf674jg3cjll4oehpmm1mi5u5r9jdaa3451f49eq541th9iom92qa062k6uviblshi8sdsbt4k1h82ae6c32gk75m87ub0176eugi812e9gbctkr2be8d51r5qno4racnjgtknf9jarcb3v4250p229mtueb1qecft82l9p16p0d1hh9ng7sfvibtvaj7ofbc16cphnc78j3kjmn,
O_RDWR) failed: File name too long (36) in
/home/sebastian/html/snippet/test.php on line 6
--
Edit bug report at https://bugs.php.net/bug.php?id=75140&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75140&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75140&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75140&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75140&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75140&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75140&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75140&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75140&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75140&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75140&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75140&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75140&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75140&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75140&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75140&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75140&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75140&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75140&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75140&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75140&r=mysqlcfg