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 memoization of functions called with keyset arguments
[hiphop-php.git]
/
hphp
/
test
/
quick
/
yermo.php
blob
a1f5b50c7200a2de824d2b73a83946b7effca7fc
1
<
?php
2
3
class
blah
{
4
private function
breaker
() {
5
static
$x
=
0
;
6
return
$x
++
==
0
?
array
() :
null
;
7
}
8
9
public function
foo
() {
10
$x
=
0
;
11
$y
=
0
;
12
13
if
((
$top_var_ref
=&
$this
->
breaker
()) ===
NULL
) {
14
echo
"hi
\n
"
;
15
}
16
echo
"ok
\n
"
;
17
}
18
}
19
20
function
main
() {
21
$x
=
new
blah
();
22
$x
->
foo
();
23
$x
->
foo
();
24
}
25
main
();