php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #62217 default file based session handler does not use streamwrappers
Submitted: 2012-06-03 18:05 UTC Modified: 2013-06-28 21:02 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: eric-php at famderuiter dot net Assigned:
Status: Wont fix Package: Session related
PHP Version: 5.4.3 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: eric-php at famderuiter dot net
New email:
PHP Version: OS:

 

 [2012-06-03 18:05 UTC] eric-php at famderuiter dot net
Description:
------------
I was testing with a streamwrapper which replaces the standard 'file://' streamwrapper. While testing I found that the session files where not opened via the streamwrapper. 
While the workaround is easy (just use a custom session handler like the example in the session_set_savehandler documentation), it would be nice to have this working by default.

Expected result:
----------------
session files are opened via the streamwrappers

Actual result:
--------------
session files are not opened via the streamwrappers

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-27 09:22 UTC] yohgaki@php.net
-Status: Open +Status: Feedback
 [2013-06-27 09:22 UTC] yohgaki@php.net
Why do you need stream wrapper for files save handler?
 [2013-06-28 08:47 UTC] eric-php at famderuiter dot net
-Status: Feedback +Status: Open
 [2013-06-28 08:47 UTC] eric-php at famderuiter dot net
We experimented with a custom file:// streamwrapper to do userland file replication to other machines in the cluster (to avoid the costs of a san).

But since PHP has the functionality to override the default file:// streamwrapper I would suspect that all internal php functions would use this. Otherwise it should be documented that certain internal functions are not using streamwrappers.
 [2013-06-28 21:02 UTC] yohgaki@php.net
-Status: Open +Status: Wont fix
 [2013-06-28 21:02 UTC] yohgaki@php.net
Many php modules uses files directly and stream wrapper is not mandatory.

If you would like to use your own session save handler, you may use user defined 
save handler or develop your own native save handler.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 06:01:29 2024 UTC