ID: 13320
Updated by: yohgaki
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Analyzed
Bug Type: Session related
Operating System: Linux/Debian/unstable
PHP Version: 4.0.6
New Comment:

This is expected. MM module will have problem you've mentioned.
This behavior will not be changed at least anytime soon...

--
Yasuo Ohgaki

Previous Comments:
------------------------------------------------------------------------

[2001-09-15 13:05:38] [EMAIL PROTECTED]

Even with the session handler set to 'files', the mod_mm MINIT function gets called, 
putting a session_mm.sem in /tmp with permissions set to 600. This stops anyone else 
from running php (such as from the command line) at the same time.

I see three possible fixes (but I don't know if these would work, otherwise I'd send 
you a patch):
1. Don't initialize the shared memory segment if the session save handler is set to 
anything but 'mm'
2. If the shared memory system fails, set a flag instead of erroring out, and have the 
rest of the shared memory system check this flag and let them error out when they try 
to use the shared memory system
3. (almost a kludge) Have the shared memory system look at either the $TMPDIR 
environment varible for where it should stick the segment, or have some other 
environment varible / configuration option that someone can set to put the 
session_mm.sem in someplace other than /tmp

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=13320&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to