PATH:
opt
/
cpanel
/
ea-php71
/
root
/
usr
/
share
/
tests
/
pecl
/
apcu
/
tests
--TEST-- APC: APCIterator delete --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?> --INI-- apc.enabled=1 apc.enable_cli=1 --FILE-- <?php $vals = array(); $vals2 = array(); $it = new APCuIterator('/key[0-9]0/'); for($i = 0; $i < 41; $i++) { apcu_store("key$i", "value$i"); } apcu_delete($it); $it2 = new APCuIterator(); foreach($it as $key=>$value) { $vals[$key] = $value['key']; } foreach($it2 as $key=>$value) { $vals2[$key] = $value['key']; } ksort($vals2); var_dump($vals); var_dump($vals2); ?> ===DONE=== --EXPECT-- array(0) { } array(37) { ["key0"]=> string(4) "key0" ["key1"]=> string(4) "key1" ["key11"]=> string(5) "key11" ["key12"]=> string(5) "key12" ["key13"]=> string(5) "key13" ["key14"]=> string(5) "key14" ["key15"]=> string(5) "key15" ["key16"]=> string(5) "key16" ["key17"]=> string(5) "key17" ["key18"]=> string(5) "key18" ["key19"]=> string(5) "key19" ["key2"]=> string(4) "key2" ["key21"]=> string(5) "key21" ["key22"]=> string(5) "key22" ["key23"]=> string(5) "key23" ["key24"]=> string(5) "key24" ["key25"]=> string(5) "key25" ["key26"]=> string(5) "key26" ["key27"]=> string(5) "key27" ["key28"]=> string(5) "key28" ["key29"]=> string(5) "key29" ["key3"]=> string(4) "key3" ["key31"]=> string(5) "key31" ["key32"]=> string(5) "key32" ["key33"]=> string(5) "key33" ["key34"]=> string(5) "key34" ["key35"]=> string(5) "key35" ["key36"]=> string(5) "key36" ["key37"]=> string(5) "key37" ["key38"]=> string(5) "key38" ["key39"]=> string(5) "key39" ["key4"]=> string(4) "key4" ["key5"]=> string(4) "key5" ["key6"]=> string(4) "key6" ["key7"]=> string(4) "key7" ["key8"]=> string(4) "key8" ["key9"]=> string(4) "key9" } ===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]