1 Star 0 Fork 0

ryanduan/php-memcached

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
undefined_set.phpt 723 Bytes
一键复制 编辑 原始数据 按行查看 历史
惠新宸 提交于 2016-07-21 18:59 +08:00 . Improved the tests
--TEST--
Set with undefined key and value
--SKIPIF--
<?php include "skipif.inc";?>
--FILE--
<?php
include dirname (__FILE__) . '/config.inc';
$m = memc_get_instance ();
$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)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rczweb_admin/php-memcached.git
git@gitee.com:rczweb_admin/php-memcached.git
rczweb_admin
php-memcached
php-memcached
master

搜索帮助