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
/
closure_class.php
blob
d8d96246666908a4ff20c620c548f4cd772a5a74
1
<
?php
2
3
trait A
{
4
public function
b
() {
5
return function
() {
6
return array
(
7
__CLASS__
,
8
get_class
(
$this
)
9
);
10
};
11
}
12
}
13
14
class
C
{
15
use
A
;
16
public function
d
() {
17
return function
() {
18
return array
(
19
__CLASS__
,
20
get_class
(
$this
)
21
);
22
};
23
}
24
}
25
26
$c
=
new
C
;
27
$b
=
$c
->
b
();
28
var_dump
(
$b
());
29
$d
=
$c
->
d
();
30
var_dump
(
$d
());