File: pecl16442.phpt

package info (click to toggle)
php-memcache 8.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 784 kB
  • sloc: ansic: 5,074; xml: 830; php: 775; pascal: 53; sh: 24; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 361 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
PECL bug #16442 (memcache_set fail with integer value)
--SKIPIF--
<?php include 'connect.inc'; ?>
--FILE--
<?php

include 'connect.inc';

$memcache_obj = memcache_connect('localhost', 11211);
memcache_set($memcache_obj, 'test123112', 1, MEMCACHE_COMPRESSED, 30);
$ret = memcache_get($memcache_obj, 'test123112');
var_dump($ret);

?>
--EXPECTF--
int(1)