Fix memoization of functions called with keyset arguments
[hiphop-php.git] / hphp / test / quick / closure_class.php
blobd8d96246666908a4ff20c620c548f4cd772a5a74
1 <?php
3 trait A {
4 public function b() {
5 return function() {
6 return array(
7 __CLASS__,
8 get_class($this)
9 );
14 class C {
15 use A;
16 public function d() {
17 return function() {
18 return array(
19 __CLASS__,
20 get_class($this)
26 $c = new C;
27 $b = $c->b();
28 var_dump($b());
29 $d = $c->d();
30 var_dump($d());