File manager - Edit - /opt/alt/tests/alt-php84-pecl-memcache_8.2-1.el8/tests/011.phpt
Back
--TEST-- memcache->set()/memcache->get() using compression --SKIPIF-- <?php include 'connect.inc'; ?> --FILE-- <?php include 'connect.inc'; $var = new stdClass; $var->plain_attribute = 'value'; $var->array_attribute = Array('test1', 'test2'); $memcache->set('test_key', $var, MEMCACHE_COMPRESSED, 10); $result = $memcache->get('test_key'); var_dump($result); ?> --EXPECTF-- object(stdClass)%s2) { ["plain_attribute"]=> string(5) "value" ["array_attribute"]=> array(2) { [0]=> string(5) "test1" [1]=> string(5) "test2" } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.2 |
proxy
|
phpinfo
|
Settings