PATH:
opt
/
alt
/
tests
/
alt-php55-pecl-memcached_2.2.0-1.el8
/
tests
--TEST-- Memcached virtual buckets --SKIPIF-- <?php if (!extension_loaded("memcached")) die ("skip"); if (!defined("Memcached::DISTRIBUTION_VIRTUAL_BUCKET")) die ("skip DISTRIBUTION_VIRTUAL_BUCKET not defined"); ?> --FILE-- <?php include dirname (__FILE__) . '/config.inc'; $m = memc_get_instance (array ( Memcached::OPT_DISTRIBUTION => Memcached::DISTRIBUTION_VIRTUAL_BUCKET )); var_dump ($m->setBucket (array (1, 2, 3), null, 2)); var_dump ($m->setBucket (array (1,2,2), array (1,2,2), 2)); var_dump ($m->setBucket (array ('a', 'b', 'c'), null, 2)); var_dump ($m->setBucket (array (), null, 2)); var_dump ($m->setBucket (array (), array (), -1)); var_dump ($m->setBucket (null, array (), -1)); var_dump ($m->setBucket (array (-1), array (-1), 1)); echo "OK\n"; ?> --EXPECTF-- bool(true) bool(true) bool(true) Warning: Memcached::setBucket(): server map cannot be empty in %s on line %d bool(false) Warning: Memcached::setBucket(): server map cannot be empty in %s on line %d bool(false) Warning: Memcached::setBucket() expects parameter 1 to be array, null given in %s on line %d NULL Warning: Memcached::setBucket(): the map must contain positive integers in %s on line %d bool(false) OK
[-] options.phpt
[edit]
[-] check_if_persistent.phpt
[edit]
[-] expire.phpt
[edit]
[-] getserverlist.phpt
[edit]
[-] types_json.phpt
[edit]
[-] check_if_pristine.phpt
[edit]
[-] callback_exception.phpt
[edit]
[-] sasl_basic.phpt
[edit]
[-] construct_persistent.phpt
[edit]
[-] testdata.res
[edit]
[-] vbucket.phpt
[edit]
[-] session_badconf_emptyprefix.phpt
[edit]
[-] deletemultitypes.phpt
[edit]
[-] session_badconf_prefix.phpt
[edit]
[-] types_msgpack.phpt
[edit]
[-] invalid_options.phpt
[edit]
[-] session_badconf_servers.phpt
[edit]
[-] invoke_callback_twice.phpt
[edit]
[-] types.inc
[edit]
[-] bug_16084.phpt
[edit]
[-] setoptions.phpt
[edit]
[-] callback_exception_2.phpt
[edit]
[-] invoke_callback.phpt
[edit]
[-] types_msgpack_multi.phpt
[edit]
[-] session_badconf_locktime.phpt
[edit]
[-] construct.phpt
[edit]
[-] 001.phpt
[edit]
[-] invoke_callback_2.phpt
[edit]
[-] clone.phpt
[edit]
[-] no-not-found.phpt
[edit]
[-] incrdecr_invalid_key.phpt
[edit]
[-] config.inc
[edit]
[-] deleted.phpt
[edit]
[+]
..
[-] bad_construct.phpt
[edit]
[-] getserverbykey.phpt
[edit]
[-] keys.phpt
[edit]