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