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
Fix issue with calling a unique, non-persistent method
[hiphop-php.git]
/
hphp
/
test
/
slow
/
compilation
/
fpushclsmethod-unique-volatile.php
blob
63a2f2e4325f33fe45537786509dbe67f9906335
1
<
?hh
2
3
if
(!
apc_fetch
(
'foo'
)) {
4
apc_store
(
'foo'
,
1
);
5
class
X
{
6
static function
foo
(
$i
) {
7
$t
=
new static
;
8
$t
->
bar
(
$i
);
9
}
10
function
bar
(
$i
) {
if
(!
$i
)
var_dump
(
'here'
); }
11
}
12
class
Y
extends
X
{}
13
}
else
{
14
apc_store
(
'foo'
,
0
);
15
}
16
17
function
main
(
$i
) {
18
X
::
foo
(
$i
);
19
}
20
21
for
(
$i
=
0
;
$i
<
100
;
$i
++
)
main
(
$i
);