php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49427 Using directory split on session path causes startup warnings
Submitted: 2009-08-31 19:09 UTC Modified: 2009-08-31 20:06 UTC
From: phpbugs at delinked dot net Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.2.10 OS: Gentoo 2.0.1 Linux 2.6.30
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: phpbugs at delinked dot net
New email:
PHP Version: OS:

 

 [2009-08-31 19:09 UTC] phpbugs at delinked dot net
Description:
------------
When session.save_path is set to something like "3;/tmp/sessions", PHP spits out the following:

PHP Startup: mm_create(0, 3;/tmp/sessions/session_mm_cli0) failed, err mm:core: failed to open semaphore file (No such file or directory) in Unknown on line 0

This is a PHP installed compiled manually from source, downloaded from PHP.net, and not from Gentoo Portage. The necessary paths under /tmp/sessions have been created with the script from ext/sessions. The warning is not presented when directory splitting is not used. During testing, no 3rd party extensions or patches were applied.

Reproduce code:
---------------
In the ini:
session.save_path="3;/tmp/sessions"

php -r 'echo "a line";'


Expected result:
----------------
a line

Actual result:
--------------
PHP Warning:  PHP Startup: mm_create(0, 3;/tmp/sessions/session_mm_cli0) failed, err mm:core: failed to open semaphore file (No such file or directory) in Unknown on line 0
a line

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-31 19:35 UTC] jani@php.net
The split paths are not very useful when using anything else but files 
as session.save_handler. There's no bug here.
 [2009-08-31 20:06 UTC] phpbugs at delinked dot net
It is set to files, per:
session.save_handler = files

So, I contend it is not bogus, as it is spitting out the warning when the handler is set to files.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 23:01:28 2025 UTC