note 73646 deleted from function.memcache-getextendedstatus by danbrown
| From: | danbrown@php.net | Date: | Tue, 09 Dec 2008 04:53:03 +0000 |
| Subject: | note 73646 deleted from function.memcache-getextendedstatus by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147931@lists.php.net to get a copy of this message | ||
Note Submitter: alex dot dean at pni dot com
----
Apparently, a notice-level error is raised when the memcache client discovers a failed memcached
server. (mod_php 5.1.2 on Apache 2.2)
<?php
$memcache = new Memcache;
$memcache->addServer( 'good_host.example.com', 11211 );
$memcache->addServer( 'dead_host.example.com', 11211 );
// get stats for all servers
$stats = $memcache->getExtendedStats();
print_r( $stats );
?>
Output includes :
Notice: Memcache::getextendedstats() [function.getextendedstats.html]: marked server
'dead_host.example.com' as failed in memcache.php on line 12