PATH:
opt
/
cpanel
/
ea-php71
/
root
/
usr
/
share
/
tests
/
pecl
/
apcu
/
tests
--TEST-- APC: APCIterator formats --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?> --INI-- apc.enabled=1 apc.enable_cli=1 apc.user_entries_hint=4096 --FILE-- <?php $formats = array( APC_ITER_KEY, APC_ITER_VALUE, APC_ITER_NUM_HITS, APC_ITER_MTIME, APC_ITER_CTIME, APC_ITER_DTIME, APC_ITER_ATIME, APC_ITER_REFCOUNT, APC_ITER_MEM_SIZE, APC_ITER_TTL, APC_ITER_NONE, APC_ITER_ALL & ~APC_ITER_TYPE, APC_ITER_ALL & ~APC_ITER_TTL & ~APC_ITER_TYPE, APC_ITER_KEY | APC_ITER_NUM_HITS | APC_ITER_MEM_SIZE, ); $it_array = array(); foreach ($formats as $idx => $format) { $it_array[$idx] = new APCuIterator(NULL, $format); } for($i = 0; $i < 11; $i++) { apcu_store("key$i", "value$i"); } foreach ($it_array as $idx => $it) { print_it($it, $idx); } function print_it($it, $idx) { echo "IT #$idx\n"; echo "============================\n"; foreach ($it as $key=>$value) { var_dump($key); var_dump($value); } echo "============================\n\n"; } ?> ===DONE=== --EXPECTF-- IT #0 ============================ string(4) "key0" array(1) { ["key"]=> string(4) "key0" } string(4) "key1" array(1) { ["key"]=> string(4) "key1" } string(4) "key2" array(1) { ["key"]=> string(4) "key2" } string(4) "key3" array(1) { ["key"]=> string(4) "key3" } string(4) "key4" array(1) { ["key"]=> string(4) "key4" } string(4) "key5" array(1) { ["key"]=> string(4) "key5" } string(4) "key6" array(1) { ["key"]=> string(4) "key6" } string(4) "key7" array(1) { ["key"]=> string(4) "key7" } string(4) "key8" array(1) { ["key"]=> string(4) "key8" } string(4) "key9" array(1) { ["key"]=> string(4) "key9" } string(5) "key10" array(1) { ["key"]=> string(5) "key10" } ============================ IT #1 ============================ string(4) "key0" array(1) { ["value"]=> string(6) "value0" } string(4) "key1" array(1) { ["value"]=> string(6) "value1" } string(4) "key2" array(1) { ["value"]=> string(6) "value2" } string(4) "key3" array(1) { ["value"]=> string(6) "value3" } string(4) "key4" array(1) { ["value"]=> string(6) "value4" } string(4) "key5" array(1) { ["value"]=> string(6) "value5" } string(4) "key6" array(1) { ["value"]=> string(6) "value6" } string(4) "key7" array(1) { ["value"]=> string(6) "value7" } string(4) "key8" array(1) { ["value"]=> string(6) "value8" } string(4) "key9" array(1) { ["value"]=> string(6) "value9" } string(5) "key10" array(1) { ["value"]=> string(7) "value10" } ============================ IT #2 ============================ string(4) "key0" array(1) { ["num_hits"]=> int(0) } string(4) "key1" array(1) { ["num_hits"]=> int(0) } string(4) "key2" array(1) { ["num_hits"]=> int(0) } string(4) "key3" array(1) { ["num_hits"]=> int(0) } string(4) "key4" array(1) { ["num_hits"]=> int(0) } string(4) "key5" array(1) { ["num_hits"]=> int(0) } string(4) "key6" array(1) { ["num_hits"]=> int(0) } string(4) "key7" array(1) { ["num_hits"]=> int(0) } string(4) "key8" array(1) { ["num_hits"]=> int(0) } string(4) "key9" array(1) { ["num_hits"]=> int(0) } string(5) "key10" array(1) { ["num_hits"]=> int(0) } ============================ IT #3 ============================ string(4) "key0" array(1) { ["mtime"]=> int(%d) } string(4) "key1" array(1) { ["mtime"]=> int(%d) } string(4) "key2" array(1) { ["mtime"]=> int(%d) } string(4) "key3" array(1) { ["mtime"]=> int(%d) } string(4) "key4" array(1) { ["mtime"]=> int(%d) } string(4) "key5" array(1) { ["mtime"]=> int(%d) } string(4) "key6" array(1) { ["mtime"]=> int(%d) } string(4) "key7" array(1) { ["mtime"]=> int(%d) } string(4) "key8" array(1) { ["mtime"]=> int(%d) } string(4) "key9" array(1) { ["mtime"]=> int(%d) } string(5) "key10" array(1) { ["mtime"]=> int(%d) } ============================ IT #4 ============================ string(4) "key0" array(1) { ["creation_time"]=> int(%d) } string(4) "key1" array(1) { ["creation_time"]=> int(%d) } string(4) "key2" array(1) { ["creation_time"]=> int(%d) } string(4) "key3" array(1) { ["creation_time"]=> int(%d) } string(4) "key4" array(1) { ["creation_time"]=> int(%d) } string(4) "key5" array(1) { ["creation_time"]=> int(%d) } string(4) "key6" array(1) { ["creation_time"]=> int(%d) } string(4) "key7" array(1) { ["creation_time"]=> int(%d) } string(4) "key8" array(1) { ["creation_time"]=> int(%d) } string(4) "key9" array(1) { ["creation_time"]=> int(%d) } string(5) "key10" array(1) { ["creation_time"]=> int(%d) } ============================ IT #5 ============================ string(4) "key0" array(1) { ["deletion_time"]=> int(0) } string(4) "key1" array(1) { ["deletion_time"]=> int(0) } string(4) "key2" array(1) { ["deletion_time"]=> int(0) } string(4) "key3" array(1) { ["deletion_time"]=> int(0) } string(4) "key4" array(1) { ["deletion_time"]=> int(0) } string(4) "key5" array(1) { ["deletion_time"]=> int(0) } string(4) "key6" array(1) { ["deletion_time"]=> int(0) } string(4) "key7" array(1) { ["deletion_time"]=> int(0) } string(4) "key8" array(1) { ["deletion_time"]=> int(0) } string(4) "key9" array(1) { ["deletion_time"]=> int(0) } string(5) "key10" array(1) { ["deletion_time"]=> int(0) } ============================ IT #6 ============================ string(4) "key0" array(1) { ["access_time"]=> int(%d) } string(4) "key1" array(1) { ["access_time"]=> int(%d) } string(4) "key2" array(1) { ["access_time"]=> int(%d) } string(4) "key3" array(1) { ["access_time"]=> int(%d) } string(4) "key4" array(1) { ["access_time"]=> int(%d) } string(4) "key5" array(1) { ["access_time"]=> int(%d) } string(4) "key6" array(1) { ["access_time"]=> int(%d) } string(4) "key7" array(1) { ["access_time"]=> int(%d) } string(4) "key8" array(1) { ["access_time"]=> int(%d) } string(4) "key9" array(1) { ["access_time"]=> int(%d) } string(5) "key10" array(1) { ["access_time"]=> int(%d) } ============================ IT #7 ============================ string(4) "key0" array(1) { ["ref_count"]=> int(0) } string(4) "key1" array(1) { ["ref_count"]=> int(0) } string(4) "key2" array(1) { ["ref_count"]=> int(0) } string(4) "key3" array(1) { ["ref_count"]=> int(0) } string(4) "key4" array(1) { ["ref_count"]=> int(0) } string(4) "key5" array(1) { ["ref_count"]=> int(0) } string(4) "key6" array(1) { ["ref_count"]=> int(0) } string(4) "key7" array(1) { ["ref_count"]=> int(0) } string(4) "key8" array(1) { ["ref_count"]=> int(0) } string(4) "key9" array(1) { ["ref_count"]=> int(0) } string(5) "key10" array(1) { ["ref_count"]=> int(0) } ============================ IT #8 ============================ string(4) "key0" array(1) { ["mem_size"]=> int(%d) } string(4) "key1" array(1) { ["mem_size"]=> int(%d) } string(4) "key2" array(1) { ["mem_size"]=> int(%d) } string(4) "key3" array(1) { ["mem_size"]=> int(%d) } string(4) "key4" array(1) { ["mem_size"]=> int(%d) } string(4) "key5" array(1) { ["mem_size"]=> int(%d) } string(4) "key6" array(1) { ["mem_size"]=> int(%d) } string(4) "key7" array(1) { ["mem_size"]=> int(%d) } string(4) "key8" array(1) { ["mem_size"]=> int(%d) } string(4) "key9" array(1) { ["mem_size"]=> int(%d) } string(5) "key10" array(1) { ["mem_size"]=> int(%d) } ============================ IT #9 ============================ string(4) "key0" array(1) { ["ttl"]=> int(0) } string(4) "key1" array(1) { ["ttl"]=> int(0) } string(4) "key2" array(1) { ["ttl"]=> int(0) } string(4) "key3" array(1) { ["ttl"]=> int(0) } string(4) "key4" array(1) { ["ttl"]=> int(0) } string(4) "key5" array(1) { ["ttl"]=> int(0) } string(4) "key6" array(1) { ["ttl"]=> int(0) } string(4) "key7" array(1) { ["ttl"]=> int(0) } string(4) "key8" array(1) { ["ttl"]=> int(0) } string(4) "key9" array(1) { ["ttl"]=> int(0) } string(5) "key10" array(1) { ["ttl"]=> int(0) } ============================ IT #10 ============================ string(4) "key0" array(0) { } string(4) "key1" array(0) { } string(4) "key2" array(0) { } string(4) "key3" array(0) { } string(4) "key4" array(0) { } string(4) "key5" array(0) { } string(4) "key6" array(0) { } string(4) "key7" array(0) { } string(4) "key8" array(0) { } string(4) "key9" array(0) { } string(5) "key10" array(0) { } ============================ IT #11 ============================ string(4) "key0" array(10) { ["key"]=> string(4) "key0" ["value"]=> string(6) "value0" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) ["ttl"]=> int(0) } string(4) "key1" array(10) { ["key"]=> string(4) "key1" ["value"]=> string(6) "value1" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) ["ttl"]=> int(0) } string(4) "key2" array(10) { ["key"]=> string(4) "key2" ["value"]=> string(6) "value2" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) ["ttl"]=> int(0) } string(4) "key3" array(10) { ["key"]=> string(4) "key3" ["value"]=> string(6) "value3" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) ["ttl"]=> int(0) } string(4) "key4" array(10) { ["key"]=> string(4) "key4" ["value"]=> string(6) "value4" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) ["ttl"]=> int(0) } string(4) "key5" array(10) { ["key"]=> string(4) "key5" ["value"]=> string(6) "value5" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) ["ttl"]=> int(0) } string(4) "key6" array(10) { ["key"]=> string(4) "key6" ["value"]=> string(6) "value6" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) ["ttl"]=> int(0) } string(4) "key7" array(10) { ["key"]=> string(4) "key7" ["value"]=> string(6) "value7" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) ["ttl"]=> int(0) } string(4) "key8" array(10) { ["key"]=> string(4) "key8" ["value"]=> string(6) "value8" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) ["ttl"]=> int(0) } string(4) "key9" array(10) { ["key"]=> string(4) "key9" ["value"]=> string(6) "value9" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) ["ttl"]=> int(0) } string(5) "key10" array(10) { ["key"]=> string(5) "key10" ["value"]=> string(7) "value10" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) ["ttl"]=> int(0) } ============================ IT #12 ============================ string(4) "key0" array(9) { ["key"]=> string(4) "key0" ["value"]=> string(6) "value0" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key1" array(9) { ["key"]=> string(4) "key1" ["value"]=> string(6) "value1" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key2" array(9) { ["key"]=> string(4) "key2" ["value"]=> string(6) "value2" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key3" array(9) { ["key"]=> string(4) "key3" ["value"]=> string(6) "value3" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key4" array(9) { ["key"]=> string(4) "key4" ["value"]=> string(6) "value4" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key5" array(9) { ["key"]=> string(4) "key5" ["value"]=> string(6) "value5" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key6" array(9) { ["key"]=> string(4) "key6" ["value"]=> string(6) "value6" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key7" array(9) { ["key"]=> string(4) "key7" ["value"]=> string(6) "value7" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key8" array(9) { ["key"]=> string(4) "key8" ["value"]=> string(6) "value8" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key9" array(9) { ["key"]=> string(4) "key9" ["value"]=> string(6) "value9" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) } string(5) "key10" array(9) { ["key"]=> string(5) "key10" ["value"]=> string(7) "value10" ["num_hits"]=> int(0) ["mtime"]=> int(%d) ["creation_time"]=> int(%d) ["deletion_time"]=> int(0) ["access_time"]=> int(%d) ["ref_count"]=> int(0) ["mem_size"]=> int(%d) } ============================ IT #13 ============================ string(4) "key0" array(3) { ["key"]=> string(4) "key0" ["num_hits"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key1" array(3) { ["key"]=> string(4) "key1" ["num_hits"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key2" array(3) { ["key"]=> string(4) "key2" ["num_hits"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key3" array(3) { ["key"]=> string(4) "key3" ["num_hits"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key4" array(3) { ["key"]=> string(4) "key4" ["num_hits"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key5" array(3) { ["key"]=> string(4) "key5" ["num_hits"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key6" array(3) { ["key"]=> string(4) "key6" ["num_hits"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key7" array(3) { ["key"]=> string(4) "key7" ["num_hits"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key8" array(3) { ["key"]=> string(4) "key8" ["num_hits"]=> int(0) ["mem_size"]=> int(%d) } string(4) "key9" array(3) { ["key"]=> string(4) "key9" ["num_hits"]=> int(0) ["mem_size"]=> int(%d) } string(5) "key10" array(3) { ["key"]=> string(5) "key10" ["num_hits"]=> int(0) ["mem_size"]=> int(%d) } ============================ ===DONE===
[-] typed_prop.phpt
[edit]
[-] apc_018.phpt
[edit]
[+]
data
[-] apc_099.phpt
[edit]
[-] apc_020.phpt
[edit]
[-] apc_007.phpt
[edit]
[-] ghbug335.phpt
[edit]
[-] bug63224.phpt
[edit]
[-] apcu_sma_info.phpt
[edit]
[-] iterator_002.phpt
[edit]
[+]
..
[-] apc_disabled.phpt
[edit]
[-] apc_015.phpt
[edit]
[-] iterator_003.phpt
[edit]
[-] bug76145.phpt
[edit]
[-] apc_011.phpt
[edit]
[-] apc54_018.phpt
[edit]
[-] apc_004.phpt
[edit]
[-] ghbug176.phpt
[edit]
[-] apc54_014.phpt
[edit]
[-] 023-2.inc
[edit]
[-] apc_inc_perf.phpt
[edit]
[-] apc_005.phpt
[edit]
[-] apc_001.phpt
[edit]
[-] apc_017.phpt
[edit]
[-] iterator_008.phpt
[edit]
[-] sma001.phpt
[edit]
[-] get_included_files_inc2.inc
[edit]
[-] apc_016.phpt
[edit]
[-] apc_021.phpt
[edit]
[-] apc_entry_003.phpt
[edit]
[-] apc_005b.phpt
[edit]
[-] apc_003b.phpt
[edit]
[-] apc_005c.phpt
[edit]
[-] get_included_files_inc1.inc
[edit]
[-] iterator_006.phpt
[edit]
[-] apc_010.phpt
[edit]
[-] iterator_004.phpt
[edit]
[-] apc_023.phpt
[edit]
[+]
bad
[-] apc_002.phpt
[edit]
[-] skipif.inc
[edit]
[-] not_enough_shm.phpt
[edit]
[-] server_test.inc
[edit]
[-] apc_012.phpt
[edit]
[-] iterator_007.phpt
[edit]
[-] apc_entry_002.phpt
[edit]
[-] iterator_001.phpt
[edit]
[-] ghbug248.phpt
[edit]
[-] apc_006_php73.phpt
[edit]
[-] apc_022.phpt
[edit]
[-] ghbug168.phpt
[edit]
[-] iterator_005.phpt
[edit]
[-] apc_019.phpt
[edit]
[-] iterator_010.phpt
[edit]
[-] 024.phpt
[edit]
[-] apc_entry_001.phpt
[edit]
[-] get_included_files_inc3.inc
[edit]
[-] apc_store_reference.phpt
[edit]
[-] apc_008.phpt
[edit]
[-] ghbug185.phpt
[edit]
[-] apc_014_store_ref.phpt
[edit]
[-] apc_024.phpt
[edit]
[-] iterator_009.phpt
[edit]
[-] apc_006.phpt
[edit]
[-] apc_013_exists.phpt
[edit]
[-] ghbug335-fail.phpt
[edit]
[-] ghbug247.phpt
[edit]