php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71714 Permission in session.save_path not working corretly
Submitted: 2016-03-05 06:43 UTC Modified: 2016-03-05 07:33 UTC
From: lampacz at gmail dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.6.19 OS: Debian jessie
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lampacz at gmail dot com
New email:
PHP Version: OS:

 

 [2016-03-05 06:43 UTC] lampacz at gmail dot com
Description:
------------
Setting 
php_value session.save_path "0;0660;/var/lib/php5/sessions" or
php_value session.save_path "0;660;/var/lib/php5/sessions"

doesn't set write for group

From http://en.php.net/manual/en/session.configuration.php#ini.session.save-path is possible to set different mode. And should not be affected by umask.

Expected result:
----------------
file session permission (0660/-rw-rw----)

Actual result:
--------------
(0600/-rw-------)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-05 07:33 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2016-03-05 07:33 UTC] requinix@php.net
It *is* affected by the umask.

Perhaps you're misunderstanding the
> Setting MODE does not affect the process umask.
comment: setting the mode will not affect (change) the umask for the process. That is the opposite of saying that the umask for the process will not affect (influence) the mode.
 [2016-03-07 07:30 UTC] lampacz at gmail dot com
Ohh, sorry my fault. It's not a bug ;)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 20:01:34 2025 UTC