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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 13:01:31 2024 UTC