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
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: mhaidar at squiz dot com dot au
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 15:01:34 2025 UTC