blob: 9ef73b0cdd7fd8c1708f23faaa564d85827e6437 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
if (!extension_loaded("memcached")) {
die("skip memcached is not loaded\n");
}
include dirname(__FILE__) . "/config.inc";
if (($m = memc_get_instance()) === NULL) {
die ("skip can not connect to server\n");
}
if (isset($min_version)) {
if (version_compare(memc_get_version($m), $min_version, "<")) {
die("skip version of server pool is too old, $min_version is required\n");
}
}
|