X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php82-pecl-memcached_3.2.0-1.el8/tests
opt
/
alt
/
tests
/
alt-php82-pecl-memcached_3.2.0-1.el8
/
tests
/
ðŸ“
..
📄
001.phpt
(183 B)
📄
add.phpt
(341 B)
📄
append.phpt
(651 B)
📄
bad_construct.phpt
(781 B)
📄
bad_construct_8.phpt
(701 B)
📄
bug_16084.phpt
(429 B)
📄
bug_16959.phpt
(1.25 KB)
📄
bug_17137.phpt
(921 B)
📄
bug_18639.phpt
(402 B)
📄
cachecallback.phpt
(1.18 KB)
📄
callback_exception.phpt
(903 B)
📄
callback_exception_2.phpt
(976 B)
📄
cas.phpt
(406 B)
📄
cas_multi.phpt
(1012 B)
📄
check_if_persistent.phpt
(795 B)
📄
check_if_pristine.phpt
(629 B)
📄
check_key.phpt
(3.75 KB)
📄
clone.phpt
(324 B)
📄
compression_types.phpt
(1.98 KB)
📄
conf_persist.phpt
(591 B)
📄
config.inc
(1.91 KB)
📄
construct.phpt
(154 B)
📄
construct_persistent.phpt
(447 B)
📄
default_behavior.phpt
(826 B)
📄
deleted.phpt
(435 B)
📄
deletemulti.phpt
(1.59 KB)
📄
deletemultitypes.phpt
(392 B)
📄
expire.phpt
(1.34 KB)
📄
flush_buffers.phpt
(545 B)
📄
get_flags.phpt
(1.13 KB)
📄
getdelayed.phpt
(1.12 KB)
📄
getmulti.phpt
(865 B)
📄
getserverbykey.phpt
(1023 B)
📄
getserverlist.phpt
(1012 B)
📄
gh_155.phpt
(1.2 KB)
📄
gh_21.phpt
(642 B)
📄
gh_500.phpt
(494 B)
📄
gh_77.phpt
(580 B)
📄
gh_90.phpt
(1.78 KB)
📄
gh_93.phpt
(863 B)
📄
incrdecr.phpt
(1.37 KB)
📄
incrdecr_64.phpt
(807 B)
📄
incrdecr_bykey.phpt
(1.39 KB)
📄
incrdecr_initial.phpt
(1.11 KB)
📄
incrdecr_invalid_key.phpt
(302 B)
📄
invalid_options.phpt
(356 B)
📄
invoke_callback.phpt
(540 B)
📄
invoke_callback_2.phpt
(1.48 KB)
📄
invoke_callback_twice.phpt
(357 B)
📄
keys_ascii.phpt
(3.18 KB)
📄
keys_binary.phpt
(3.26 KB)
📄
localserver.phpt
(322 B)
📄
memcachedserver.phpt
(2.84 KB)
📄
memcachedserver6.phpt
(2.72 KB)
📄
multi_order.phpt
(686 B)
📄
no-not-found.phpt
(470 B)
📄
options.phpt
(1.3 KB)
📄
pr_75.phpt
(644 B)
📄
prepend.phpt
(639 B)
📄
replace.phpt
(398 B)
📄
rescode.phpt
(1.78 KB)
📄
reset_keyprefix.phpt
(800 B)
📄
sasl_basic.phpt
(757 B)
📄
server.inc
(2.26 KB)
📄
server.php
(4.68 KB)
📄
session_badconf_emptyprefix.phpt
(629 B)
📄
session_badconf_locktime.phpt
(543 B)
📄
session_badconf_persistent.phpt
(662 B)
📄
session_badconf_prefix.phpt
(655 B)
📄
session_badconf_servers-php72.phpt
(771 B)
📄
session_badconf_servers.phpt
(698 B)
📄
session_basic.phpt
(706 B)
📄
session_basic2.phpt
(726 B)
📄
session_basic3.phpt
(735 B)
📄
session_lazy_warning.phpt
(1 KB)
📄
session_lock-php71.phpt
(1.58 KB)
📄
session_lock.phpt
(1.48 KB)
📄
session_persistent.phpt
(630 B)
📄
session_regenerate.phpt
(485 B)
📄
set_encoding_key2.phpt
(1 KB)
📄
set_large.phpt
(335 B)
📄
setmulti.phpt
(1.14 KB)
📄
setoptions.phpt
(1.05 KB)
📄
skipif.inc
(394 B)
📄
stats.phpt
(447 B)
📄
stats_hang.phpt
(2.17 KB)
📄
testdata.res
(4.76 KB)
📄
touch_binary.phpt
(1.85 KB)
📄
types.inc
(2.76 KB)
📄
types_igbinary.phpt
(451 B)
📄
types_igbinary_multi.phpt
(469 B)
📄
types_json.phpt
(437 B)
📄
types_json_multi.phpt
(455 B)
📄
types_msgpack.phpt
(501 B)
📄
types_msgpack_multi.phpt
(513 B)
📄
types_php.phpt
(348 B)
📄
types_php_multi.phpt
(360 B)
📄
undefined_set.phpt
(633 B)
📄
user-flags.phpt
(2.52 KB)
📄
vbucket.phpt
(627 B)
📄
vbucket_error_7.phpt
(1.03 KB)
📄
vbucket_error_8.phpt
(1.08 KB)
📄
version.phpt
(269 B)
Editing: memcachedserver.phpt
--TEST-- MemcachedServer --SKIPIF-- <?php if (!extension_loaded("memcached")) { die("skip memcached is not loaded\n"); } if (!class_exists("MemcachedServer")) { die("skip memcached not built with libmemcachedprotocol support\n"); } if (Memcached::LIBMEMCACHED_VERSION_HEX < 0x1001000) { die("skip needs at least libmemcached 1.1.0\n"); } ?> --FILE-- <?php include __DIR__ . '/server.inc'; $server = memcached_server_start(); $cache = new Memcached(); $cache->setOption(Memcached::OPT_BINARY_PROTOCOL, true); $cache->setOption(Memcached::OPT_COMPRESSION, false); $cache->addServer('127.0.0.1', 3434); $cache->add("add_key", "hello", 500); $cache->append("append_key", "world"); $cache->prepend("prepend_key", "world"); $cache->increment("incr", 2, 1, 500); $cache->decrement("decr", 2, 1, 500); $cache->delete("delete_k"); $cache->flush(1); var_dump($cache->get('get_this')); $cache->set ('set_key', 'value 1', 100); $cache->replace ('replace_key', 'value 2', 200); var_dump($cache->getVersion()); var_dump($cache->getStats()); var_dump($cache->getStats("empty")); var_dump($cache->getStats("foobar")); var_dump($cache->getStats("scalar")); var_dump($cache->getStats("numeric array")); $cache->quit(); usleep(50000); memcached_server_stop($server); ?> Done --EXPECTF-- Listening on 127.0.0.1:3434 Incoming connection from 127.0.0.1:%s Incoming connection from 127.0.0.1:%s client_id=[%s]: Add key=[add_key], value=[hello], flags=[0], expiration=[500] client_id=[%s]: Append key=[append_key], value=[world], cas=[0] client_id=[%s]: Prepend key=[prepend_key], value=[world], cas=[0] client_id=[%s]: Incrementing key=[incr], delta=[2], initial=[1], expiration=[500] client_id=[%s]: Decrementing key=[decr], delta=[2], initial=[1], expiration=[500] client_id=[%s]: Delete key=[delete_k], cas=[0] client_id=[%s]: Flush when=[1] client_id=[%s]: Get key=[get_this] client_id=[%s]: Noop string(20) "Hello to you client!" client_id=[%s]: Set key=[set_key], value=[value 1], flags=[0], expiration=[100], cas=[0] client_id=[%s]: Replace key=[replace_key], value=[value 2], flags=[0], expiration=[200], cas=[0] client_id=[%s]: Version array(1) { ["127.0.0.1:3434"]=> string(5) "1.1.1" } client_id=[%s]: Stat key=[] array(1) { ["127.0.0.1:3434"]=> array(2) { ["key"]=> string(0) "" ["foo"]=> string(3) "bar" } } client_id=[%s]: Stat key=[empty] array(0) { } client_id=[%s]: Stat key=[foobar] array(1) { ["127.0.0.1:3434"]=> array(2) { ["key"]=> string(6) "foobar" ["foo"]=> string(3) "bar" } } client_id=[%s]: Stat key=[scalar] array(1) { ["127.0.0.1:3434"]=> array(1) { [0]=> string(%d) "you want it, you get it" } } client_id=[%s]: Stat key=[numeric array] array(1) { ["127.0.0.1:3434"]=> array(3) { [-1]=> string(3) "one" [0]=> string(3) "two" [1]=> string(5) "three" } } client_id=[%s]: Client quit Done
Upload File
Create Folder