php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #49658 Default save.session_path and mm_create() warning
Submitted: 2009-09-24 12:35 UTC Modified: 2013-02-18 00:34 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: jeff at macloue dot com Assigned:
Status: No Feedback Package: Session related
PHP Version: 5.2.11 OS: Slackware 13.0
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: jeff at macloue dot com
New email:
PHP Version: OS:

 

 [2009-09-24 12:35 UTC] jeff at macloue dot com
Description:
------------
php -n throws a warning:

PHP Warning:  PHP Startup: mm_create(0, /session_mm_cli1000) failed, err mm:core: failed to open semaphore file (Permission denied) in Unknown on line 0

Expected result:
----------------
This bug was previously submitted as #49401. Despite marked bogus it can be very annoying and also it doesn't seem logical to make the default built-in configuration to throw a warning on most/all the platforms.

I also did some investigation on that libmm used by PHP session extension and found that creating the semaphore file is not a must on many platforms but it is kind of recommended and fail-safe way. I don't see any big trouble if libmm's semaphores are created in $TMP or /tmp directory instead of "blank" - at least it will make PHP _safer_ on many platforms without adding much risks. Of course the best way imho will be to make some ./configure switch for setting default session.save_path value or smth like that.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-24 11:17 UTC] jani@php.net
-Package: Feature/Change Request +Package: Session related
 [2012-03-31 04:28 UTC] yohgaki@php.net
I didn't get warning with 5.3.11-dev. Do you still have issue?
 [2012-03-31 04:28 UTC] yohgaki@php.net
-Status: Open +Status: Feedback
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 03:01:28 2024 UTC