Files
pecl-memcache/tests/018.phpt
Mikael Johansson 4257021ba0 Added INI directive memcache.compress_threshold = 20000 which controls the default compression threshold
Added E_NOTICE when receiving out-of-memory or object-to-large errors
2008-12-25 15:42:31 +00:00

23 lines
398 B
PHP

--TEST--
memcache_set() & memcache_add()
--SKIPIF--
<?php include 'connect.inc'; ?>
--FILE--
<?php
include 'connect.inc';
$var = 'test';
error_reporting(E_ALL);
$result1 = memcache_set($memcache, 'non_existing_test_key', $var, false, 1);
$result2 = @memcache_add($memcache, 'non_existing_test_key', $var, false, 1);
var_dump($result1);
var_dump($result2);
?>
--EXPECT--
bool(true)
bool(false)