mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-03-24 17:12:22 +01:00
21 lines
440 B
PHP
21 lines
440 B
PHP
--TEST--
|
|
Compress below factor and fail to plain.
|
|
--SKIPIF--
|
|
<?php include dirname(dirname(__FILE__)) . "/skipif.inc";?>
|
|
--FILE--
|
|
<?php
|
|
include dirname(dirname(__FILE__)) . '/config.inc';
|
|
$m = memc_get_instance ();
|
|
|
|
ini_set('memcached.compression_threshold', 100);
|
|
ini_set('memcached.compression_factor', 10);
|
|
$array = range(1, 20000, 1);
|
|
|
|
$m->set('foo', $array, 10);
|
|
$rv = $m->get('foo');
|
|
var_dump($array === $rv);
|
|
|
|
|
|
--EXPECT--
|
|
bool(true)
|