Files
php-memcached/tests/set_comp_below_factor.phpt
Pavel Djundik 7348cc11f7 Move working tests up a folder (#503)
Tests in the experimental/ folder were not executed on CI. The ones that work move up, the few
that remain in experimental/ need further investigation to get working or remove.
2023-04-27 08:35:07 -07:00

21 lines
401 B
PHP

--TEST--
Compress below factor and fail to plain.
--SKIPIF--
<?php include "skipif.inc";?>
--FILE--
<?php
include 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)