php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30245 UNIX Permission problem with any session opened
Submitted: 2004-09-26 21:18 UTC Modified: 2004-09-27 20:25 UTC
From: nagol at erratum dot net Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.0.1 OS: freebsd
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: nagol at erratum dot net
New email:
PHP Version: OS:

 

 [2004-09-26 21:18 UTC] nagol at erratum dot net
Description:
------------
Any session_start() produces a session file with 400 permission (read-only) resulting in an error the next session_start():

This is a major bug...

I tested changing the session.save_path and chmoding again and again files and directories with no success. This bug appeared just after a php update (i mean sessions worked before)

Reproduce code:
---------------
session_start();

Expected result:
----------------
no error

Actual result:
--------------
errors

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-27 09:05 UTC] derick@php.net
I think this has to do with a wrong umask setting. Please make a PHP script in which session_start() generates a broken file and add "echo umask()"; in that script and tell me what it outputs.

needless to say, this works fine here for me (and others I'd say).
 [2004-09-27 19:46 UTC] nagol at erratum dot net
That's it. Thanx a lot and sorry for bug reporting something's not a bug :)
 [2004-09-27 20:25 UTC] derick@php.net
Not a bug, so the status should be bogus.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 08:01:34 2025 UTC