Req #77795 [NEW]: Suggestion: Create "phar" session.save_handler Option
From: webmaster at RealityRipple dot com
Operating system:
PHP version: Irrelevant
Package: Session related
Bug Type: Feature/Change Request
Bug description:Suggestion: Create "phar" session.save_handler Option
Description:
------------
While it is possible to write this by hand using
session_set_save_handler or a plugin, it seems like it would be a good
idea to build-in saving sessions to a single PHAR Data file. The two
technologies would seem to compliment each other fairly well, and it
would be helpful as far as file count limitations go, which many shared
hosting servers implement. It may also help to stimulate use of PHAR
files by developers in other, similar cases.
I have not set up any test environments to see what kind of speed or
system usage issues may exist from using PHAR so actively, but as long
as the file isn't compressed, it shouldn't be too bad.
It would, additionally, be of some use to re-purpose session.save_path
to point to a file rather than a directory. Whether to create a tar/zip
option or detect it by file extension is up to you, though I'd suggest
creating a session.save_format or save_type or what have you, just in
case a user feels like using .sess or .tmp or some other unexpected file
extension, or no extension at all. Plus, you already have the 'Phar file
format constants' defined. It may also be best to require tar in all
instances, if the performance is that superior to zip.
--
Edit bug report at https://bugs.php.net/bug.php?id=77795&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77795&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77795&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77795&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77795&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77795&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77795&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77795&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77795&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77795&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77795&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77795&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77795&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77795&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77795&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77795&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77795&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77795&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77795&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77795&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77795&r=mysqlcfg
Thread (2 messages)
- webmaster at RealityRipple dot com