Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275472 - dev-lang/php-5.2.10: does not work with memcache as session handler anymore
Summary: dev-lang/php-5.2.10: does not work with memcache as session handler anymore
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-26 11:09 UTC by Deniss Gaplevsky
Modified: 2010-10-19 20:14 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Deniss Gaplevsky 2009-06-26 11:09:38 UTC
dev-lang/php-5.2.10 compiled with "session sharedmem" USE flags and dev-php5/pecl-memcache-3.0.4 is used as session handler, php raise error on startup:
"Jun 26 13:47:26 web php-cgi: PHP Warning:  PHP Startup: mm_create(0, tcp://10.0.0.1/session_mm_cgi-fcgi102) failed, err mm:core: failed to open semaphore file (No such file or directory) in Unknown on line 0" 
and session is not available.
dev-lang/php-5.2.9-r2 works well with same config

Reproducible: Always

Steps to Reproduce:
1. compile dev-lang/php-5.2.10 with "session sharedmem"
2. compile dev-php5/pecl-memcache-3.0.4
3. configure php to use memcache: 
session.save_handler = memcache  
session.save_path = "tcp://10.0.0.1"
4. run php

Actual Results:  
error in php log, session is not available:
Jun 26 13:47:26 web php-cgi: PHP Warning:  PHP Startup: mm_create(0, tcp://10.0.0.1/session_mm_cgi-fcgi102) failed, err mm:core: failed to open semaphore file (No such file or directory) in Unknown on line 0

Expected Results:  
should works
Comment 1 Christian Hoffmann (RETIRED) gentoo-dev 2009-07-09 21:16:12 UTC
Please try php-5.2.10-r2 from the php-testing overlay. It contains a patch which reverts ext/session to the state of php-5.2.9.
This should just be used to track down the bug and to provide an intermediate solution (it's better using this version than reverting to 5.2.9 in completely).

Hope this helps, please report back.

As this is only a (possible) workaround and no solution, I'm leaving the bug open.
Comment 2 Deniss Gaplevsky 2009-07-10 11:10:52 UTC
php starts without errors at least.
Christian, could u please post this bug to php mainstream buglist providing some technical details ?
Comment 3 Deniss Gaplevsky 2009-10-15 11:14:06 UTC
looks like there is a solution in svn head: http://bugs.php.net/bug.php?id=49503
Comment 4 Matti Bickel (RETIRED) gentoo-dev 2010-08-04 13:16:43 UTC
Is still an issue with php-5.2.14 or php-5.3.3?
Comment 5 Ole Markus With (RETIRED) gentoo-dev 2010-10-19 20:14:00 UTC
I guess it is working with newer versions of PHP. Please reopen if it is still an issue.