php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53459 session_start() not compatible with memcache session handler failover
Submitted: 2010-12-03 05:25 UTC Modified: 2010-12-03 09:28 UTC
From: mhaidar at squiz dot com dot au Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.2SVN-2010-12-03 (SVN) OS: lenny9
Private report: No CVE-ID: None
 [2010-12-03 05:25 UTC] mhaidar at squiz dot com dot au
Description:
------------
memcache extension allows for failover (memcache.allow_failover = 1)
and can be used as a session handler (session.save_handler = memcache)

Unfortunately when failover happens a notice is thrown at session_start().

session_start() [function.session-start]: php_network_getaddresses: getaddrinfo failed: Name or service not known

Failover still works but the page is completed corrupted.
The manual is misleading: Quote 
"memcache.allow_failover boolean

    Whether to transparently failover to other servers on errors."

session_start does not deal with this so we can stay "transparent".


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-03 09:28 UTC] johannes@php.net
-Status: Open +Status: Bogus
 [2010-12-03 09:28 UTC] johannes@php.net
Please report bugs in PECL extensions at http://pecl.php.net Thank You.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 28 19:01:31 2024 UTC