관리-도구
편집 파일: pr_75.phpt
--TEST-- Wrong return values for binary protocol --SKIPIF-- <?php include "skipif.inc";?> --FILE-- <?php include dirname (__FILE__) . '/config.inc'; $client = memc_get_instance (array ( Memcached::OPT_BINARY_PROTOCOL => true )); $client->set('key1', 'value1'); echo "set result code: ".$client->getResultCode()."\n"; $value = $client->get('key1'); echo "got $value with result code: ".$client->getResultCode()."\n"; var_dump ($client->add('key2', 'value2')); echo "add result code: ".$client->getResultCode()."\n"; echo "OK\n"; ?> --EXPECT-- set result code: 0 got value1 with result code: 0 bool(true) add result code: 0 OK