Doc #68221 [NEW]: session.save_path has bad advice for directory level depths
| From: | greenreaper at hotmail dot com | Date: | Tue, 14 Oct 2014 01:22:03 +0000 |
| Subject: | Doc #68221 [NEW]: session.save_path has bad advice for directory level depths | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-11545@lists.php.net to get a copy of this message | ||
From: greenreaper at hotmail dot com
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:session.save_path has bad advice for directory level depths
Description:
------------
---
From manual page: http://www.php.net/session.configuration
---
The description of session.save_path gives an infeasible suggestion for
the depth of the session directory tree:
"There is an optional N argument to this directive that determines the
number of directory levels your session files will be spread around in.
For example, setting to '5;/tmp' may end up creating a session file and
location like /tmp/4/b/1/e/3/sess_4b1e384ad74619bd212e236e52a5a174If ."
People may try to use this kind of figure without thinking about what
they're doing. They probably won't be *able* to create 64^5 directories,
but once they find that out, they may be tempted to split the difference
- even 64^3 is over 1Gb and 256k inodes on most systems, just for the
structure.
Something like "If you're considering a value beyond 1 or 2, you may
want to look into a different session.save_handler." would be helpful.
Also, the dir_indexes option for ext2/3/4 can help with large session
directories, though I don't know if PHP gives such specific advice.
--
Edit bug report at https://bugs.php.net/bug.php?id=68221&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68221&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68221&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68221&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68221&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68221&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68221&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68221&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68221&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68221&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68221&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68221&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68221&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68221&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68221&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68221&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68221&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68221&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68221&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68221&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68221&r=mysqlcfg