File: 047a.phpt

package info (click to toggle)
php-memcache 3.0.9~20170802.e702b5f-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,172 kB
  • sloc: ansic: 9,126; php: 1,015; xml: 760; sh: 3; makefile: 1
file content (25 lines) | stat: -rw-r--r-- 542 bytes parent folder | download | duplicates (4)
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"