Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 494f2c14be
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (29 sloc) 0.741 kB
--TEST--
Set with undefined key and value
--SKIPIF--
<?php if (!extension_loaded("memcached")) print "skip"; ?>
--FILE--
<?php
$m = new Memcached();
$m->addServer('127.0.0.1', 11211, 1);
$key = 'foobarbazDEADC0DE';
$value = array('foo' => 'bar');
$rv = $m->set($no_key, $value, 360);
var_dump($rv);
$rv = $m->set($key, $no_value, 360);
var_dump($rv);
$rv = $m->set($no_key, $no_value, 360);
var_dump($rv);
$rv = $m->set($key, $value, $no_time);
var_dump($rv);
?>
--EXPECTF--
Notice: Undefined variable: no_key in %s
bool(false)
Notice: Undefined variable: no_value in %s
bool(true)
Notice: Undefined variable: no_key in %s
Notice: Undefined variable: no_value in %s
bool(false)
Notice: Undefined variable: no_time in %s
bool(true)
Jump to Line
Something went wrong with that request. Please try again.