Bug #71714 [Opn->Nab]: Permission in session.save_path not working corretly
Edit report at https://bugs.php.net/bug.php?id=71714&edit=1
ID: 71714
Updated by: requinix@php.net
Reported by: lampacz at gmail dot com
Summary: Permission in session.save_path not working corretly
-Status: Open
+Status: Not a bug
Type: Bug
Package: Session related
Operating System: Debian jessie
PHP Version: 5.6.19
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2016-03-05 06:43:33] 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-------)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71714&edit=1
Thread (3 messages)