1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
--TEST--
memcache->get() with flags (PHP 5 only)
--SKIPIF--
<?php include 'connect.inc'; if (!isset($host2)) die('skip $host2 not set'); ?>
<?php if (version_compare(phpversion(), '7', '>=')) die('skip requires PHP 5 '); ?>
--FILE--
<?php
include 'connect.inc';
$flag1 = 0x10000;
$memcache->set('test_key1', 'test1', $flag1);
$result1 = $memcache->get('test_key1', null);
var_dump($result1);
// Test procedural
$result1 = memcache_get($memcache, 'test_key1', null);
var_dump($result1);
?>
--EXPECT--
string(5) "test1"
string(5) "test1"
|