php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #64657 session ignores failure_callback
Submitted: 2013-04-17 14:18 UTC Modified: 2021-03-25 16:36 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: daniel at healthycod dot in Assigned: cmb (profile)
Status: Closed Package: memcache (PECL)
PHP Version: 5.3.24 OS: all
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: daniel at healthycod dot in
New email:
PHP Version: OS:

 

 [2013-04-17 14:18 UTC] daniel at healthycod dot in
Description:
------------
failure_callback does not work for session handler. Parameter is not recognized in 
PS_OPEN_FUNC.

Test script:
---------------
$session_save_path = "tcp://$unreachableHost:$unreachablePort?failure_callback=_callback_server_failure";
ini_set('session.save_handler', 'memcache');
ini_set('session.save_path', $session_save_path);

function _callback_server_failure($host, $tcp_port, $udp_port, $error, $errnum) {
  echo "true";
}

session_start();



Expected result:
----------------
true

Actual result:
--------------
Warning: Unknown: Failed to write session data (memcache). Please verify that the 
current setting of session.save_path is correct (tcp://10.254.254.254:11211?
failure_callback=_callback_server_failure) in Unknown on line 0

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-03-25 16:36 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-03-25 16:36 UTC] cmb@php.net
The official bug tracker for PECL/memcache is now at
<https://github.com/websupport-sk/pecl-memcache/issues>.

So, if this is still an issue with either of the current memcache
versions (4 or 8), please file an issue there.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 19:01:37 2025 UTC