|  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
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: jeff at macloue dot com
New email:
PHP Version: OS:


 [2009-09-24 12:35 UTC] jeff at macloue dot com
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-24 11:17 UTC]
-Package: Feature/Change Request +Package: Session related
 [2012-03-31 04:28 UTC]
I didn't get warning with 5.3.11-dev. Do you still have issue?
 [2012-03-31 04:28 UTC]
-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-2023 The PHP Group
All rights reserved.
Last updated: Sun Mar 26 08:03:53 2023 UTC