%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/gh_77.phpt

--TEST--
Test for Github issue #77
--SKIPIF--
<?php
$min_version = "1.4.8";
include dirname(__FILE__) . "/skipif.inc";
if (Memcached::LIBMEMCACHED_VERSION_HEX < 0x01000016) die ('skip too old libmemcached');
?>
--FILE--
<?php
include dirname (__FILE__) . '/config.inc';
$mc = memc_get_instance ();

$key = uniqid ("this_does_not_exist_");

$mc->touch($key, 5);
var_dump ($mc->getResultCode() == Memcached::RES_NOTFOUND);
$mc->set($key, 1, 5);

$mc->set($key, 1, 5);
var_dump ($mc->getResultCode() == Memcached::RES_SUCCESS);

echo "OK\n";

?>
--EXPECT--
bool(true)
bool(true)
OK


Zerion Mini Shell 1.0