X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php80-pecl-apcu_5.1.23-1.el8/tests
opt
/
alt
/
tests
/
alt-php80-pecl-apcu_5.1.23-1.el8
/
tests
/
ðŸ“
..
📄
apc_001.phpt
(513 B)
📄
apc_002.phpt
(481 B)
📄
apc_003b.phpt
(1.74 KB)
📄
apc_003b_legacy.phpt
(1.69 KB)
📄
apc_004.phpt
(654 B)
📄
apc_005.phpt
(635 B)
📄
apc_005b.phpt
(705 B)
📄
apc_005c.phpt
(800 B)
📄
apc_006.phpt
(1.13 KB)
📄
apc_006_php73.phpt
(1.02 KB)
📄
apc_006_php81.phpt
(1.25 KB)
📄
apc_007.phpt
(1.05 KB)
📄
apc_008.phpt
(838 B)
📄
apc_010.phpt
(1.3 KB)
📄
apc_011.phpt
(380 B)
📄
apc_012.phpt
(606 B)
📄
apc_013_exists.phpt
(407 B)
📄
apc_014_store_ref.phpt
(392 B)
📄
apc_015.phpt
(255 B)
📄
apc_016.phpt
(613 B)
📄
apc_017.phpt
(326 B)
📄
apc_018.phpt
(193 B)
📄
apc_019.phpt
(732 B)
📄
apc_020.phpt
(802 B)
📄
apc_021.phpt
(903 B)
📄
apc_022.phpt
(620 B)
📄
apc_023.phpt
(1.15 KB)
📄
apc_024.phpt
(327 B)
📄
apc_025.phpt
(423 B)
📄
apc_099.phpt
(399 B)
📄
apc_disabled.phpt
(1.83 KB)
📄
apc_entry_001.phpt
(523 B)
📄
apc_entry_002.phpt
(434 B)
📄
apc_entry_003.phpt
(284 B)
📄
apc_entry_recursion.phpt
(374 B)
📄
apc_inc_perf.phpt
(548 B)
📄
apc_store_array_int_keys.phpt
(382 B)
📄
apc_store_array_with_refs.phpt
(254 B)
📄
apc_store_reference.phpt
(635 B)
📄
apc_store_reference_php8.phpt
(606 B)
📄
apc_store_string_reuse.phpt
(217 B)
📄
apcu_fetch_empty_array_reference.phpt
(693 B)
📄
apcu_sma_info.phpt
(583 B)
ðŸ“
bad
📄
bug76145.phpt
(886 B)
ðŸ“
data
📄
get_included_files_inc1.inc
(28 B)
📄
get_included_files_inc2.inc
(87 B)
📄
get_included_files_inc3.inc
(87 B)
📄
ghbug168.phpt
(469 B)
📄
ghbug185.phpt
(1.12 KB)
📄
ghbug247.phpt
(324 B)
📄
ghbug248.phpt
(2.92 KB)
📄
ghbug335-fail.phpt
(680 B)
📄
ghbug335.phpt
(673 B)
📄
iterator_001.phpt
(1.73 KB)
📄
iterator_002.phpt
(541 B)
📄
iterator_003.phpt
(1.75 KB)
📄
iterator_004.phpt
(594 B)
📄
iterator_005.phpt
(1.78 KB)
📄
iterator_006.phpt
(16.52 KB)
📄
iterator_007.phpt
(1.37 KB)
📄
iterator_008.phpt
(512 B)
📄
iterator_009.phpt
(382 B)
📄
iterator_010.phpt
(942 B)
📄
iterator_011.phpt
(665 B)
📄
not_enough_shm.phpt
(329 B)
📄
server_test.inc
(4.22 KB)
📄
skipif.inc
(79 B)
📄
sma001.phpt
(575 B)
📄
typed_prop.phpt
(678 B)
Editing: iterator_006.phpt
--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===
Upload File
Create Folder