mirror of
https://github.com/php-win-ext/pecl-memcache.git
synced 2026-03-24 00:52:07 +01:00
23 lines
398 B
PHP
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)
|