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
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.
php starts without errors at least. Christian, could u please post this bug to php mainstream buglist providing some technical details ?
looks like there is a solution in svn head: http://bugs.php.net/bug.php?id=49503
Is still an issue with php-5.2.14 or php-5.3.3?
I guess it is working with newer versions of PHP. Please reopen if it is still an issue.