PATH:
opt
/
cpanel
/
ea-php56
/
root
/
usr
/
share
/
tests
/
pecl
/
apcu
/
tests
--TEST-- APC: bindump user cache, variation 3 --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?> <?php /* XXX this is a hack, but otherwise the data for each platform has te be created manually */ apc_clear_cache(); apc_store('foo', 42); apc_store('bar', 'foo'); apcu_bin_dumpfile(NULL, dirname(__FILE__) . '/foo.bin', APC_BIN_VERIFY_MD5 | APC_BIN_VERIFY_CRC32); --INI-- apc.enabled=1 apc.enable_cli=1 --FILE-- <?php apc_clear_cache(); var_dump(apc_fetch('foo')); var_dump(apc_fetch('bar')); apcu_bin_loadfile(dirname(__FILE__) . '/foo.bin', NULL, APC_BIN_VERIFY_MD5 | APC_BIN_VERIFY_CRC32); var_dump(apc_fetch('foo')); var_dump(apc_fetch('bar')); ?> ===DONE=== <?php exit(0); ?> --CLEAN-- <?php unlink(dirname(__FILE__) . '/foo.bin'); --EXPECTF-- bool(false) bool(false) int(42) string(3) "foo" ===DONE===
[+]
data
[-] apc_bin_003.phpt
[edit]
[-] apc_007.phpt
[edit]
[-] bug63224.phpt
[edit]
[-] iterator_002.phpt
[edit]
[+]
..
[-] iterator_003.phpt
[edit]
[-] apc_011.phpt
[edit]
[-] apc54_018.phpt
[edit]
[-] apc_bin_004.phpt
[edit]
[-] apc_004.phpt
[edit]
[-] php_5_3_ns.inc
[edit]
[-] apc54_014.phpt
[edit]
[-] 023-2.inc
[edit]
[-] apc_005.phpt
[edit]
[-] apc_001.phpt
[edit]
[-] apc_bin_001.phpt
[edit]
[-] iterator_008.phpt
[edit]
[-] get_included_files_inc2.inc
[edit]
[-] apc_003b.phpt
[edit]
[-] get_included_files_inc1.inc
[edit]
[-] iterator_006.phpt
[edit]
[-] apc_010.phpt
[edit]
[-] iterator_004.phpt
[edit]
[-] apc_002.phpt
[edit]
[-] skipif.inc
[edit]
[-] server_test.inc
[edit]
[-] iterator_007.phpt
[edit]
[-] iterator_001.phpt
[edit]
[-] apc_003.phpt
[edit]
[-] iterator_005.phpt
[edit]
[-] 024.phpt
[edit]
[-] get_included_files_inc3.inc
[edit]
[-] apc_008.phpt
[edit]
[-] apc_bin_002.phpt
[edit]
[-] apc_006.phpt
[edit]