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: -
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: daniel at healthycod dot in Assigned:
Status: Open Package: memcache (PECL)
PHP Version: 5.3.24 OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
50 - 28 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Dec 15 00:01:22 2019 UTC