|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
38 - 22 = ?
Subscribe to this entry?

 [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 22:03:37 2023 UTC