php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #77795 Suggestion: Create "phar" session.save_handler Option
Submitted: 2019-03-26 10:27 UTC Modified: 2021-03-19 18:32 UTC
From: webmaster at RealityRipple dot com Assigned:
Status: Suspended Package: Session related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: webmaster at RealityRipple dot com
New email:
PHP Version: OS:

 

 [2019-03-26 10:27 UTC] webmaster at RealityRipple dot com
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-03-19 18:32 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2021-03-19 18:32 UTC] cmb@php.net
This feature request appears to be controversial, and as such
requires an RFC.  If you're still interested in this feature,
please pursue the RFC process[1].  For the time being, I suspend
this ticket.

[1] <https://wiki.php.net/rfc/howto>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 13:01:29 2024 UTC