php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59226 Callback function does not work
Submitted: 2010-05-22 16:21 UTC Modified: 2010-05-22 19:04 UTC
From: info at theindustry dot se Assigned:
Status: Closed Package: memcache (PECL)
PHP Version: 5.3.0 OS: XP
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: info at theindustry dot se
New email:
PHP Version: OS:

 

 [2010-05-22 16:21 UTC] info at theindustry dot se
Description:
------------
I have followed the PHP documention in order to setup my memcached server cluster in my PHP application according to the instructions. When a server is being added which obviously shoudlnt work, the failurecallback-function is never being thrown.

Memcache PECL version2.2. @ $Revision: 1.114 $ is used. 

Reproduce code:
---------------
function failureCallback($host, $port) {
    print "memcache '$host:$port' failed";
}
    
    $this->memcache = new Memcache;
    
    $this->memcache->addServer('Offlineserver', '11211', FALSE, 50, 10, 10, TRUE, 'failureCallback' );

Expected result:
----------------
Memcache Offlineserver:11211 failed

Actual result:
--------------
Nothing happens

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-22 19:04 UTC] info at theindustry dot se
Hi! Stupid me. I should have read the documentation more. Obviously the callback cannot be done before something actually is done with the server since addServer-command does not do anything but add the server to the pool...
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 18:01:32 2025 UTC