2
APC: bindump user cache, variation 3
4
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
6
/* XXX this is a hack, but otherwise the data for each platform
7
has te be created manually */
10
apc_store('bar', 'foo');
11
apcu_bin_dumpfile(NULL, dirname(__FILE__) . '/foo.bin', APC_BIN_VERIFY_MD5 | APC_BIN_VERIFY_CRC32);
18
var_dump(apc_fetch('foo'));
19
var_dump(apc_fetch('bar'));
20
apcu_bin_loadfile(dirname(__FILE__) . '/foo.bin', NULL, APC_BIN_VERIFY_MD5 | APC_BIN_VERIFY_CRC32);
21
var_dump(apc_fetch('foo'));
22
var_dump(apc_fetch('bar'));
28
unlink(dirname(__FILE__) . '/foo.bin');