📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 12:33:37
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php85-pecl-memcache_8.2-2.el8
/
tests
📍 /opt/alt/tests/alt-php85-pecl-memcache_8.2-2.el8/tests
🔄 Refresh
✏️
Editing: 011.phpt
Read Only
--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" } }
💾 Save Changes
❌ Cancel