repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add bitset operations and tests
[hiphop-php.git]
/
hphp
/
test
/
slow
/
ext_apc_iterator
/
iterator_002.php
blob
35ef0981aa2412f258e4e1e857cc6fcfa0e77a1b
1
<
?php
2
error_reporting
(
E_ALL
&
~E_USER_NOTICE
&
~E_NOTICE
);
3
4
$it
=
new
APCIterator
(
'user'
,
'/key[0-9]0/'
);
5
for
(
$i
=
0
;
$i
<
41
;
$i
++
) {
6
apc_store
(
"key
$i
"
,
"value
$i
"
);
7
}
8
foreach
(
$it
as
$key
=>
$value
) {
9
$vals
[
$key
] =
$value
[
'key'
];
10
}
11
ksort
(
$vals
);
12
var_dump
(
$vals
);
13
14
?
>
15
===
DONE
===
16
<
?php
exit
(
0
);
?
>