Fix issue with calling a unique, non-persistent method
[hiphop-php.git] / hphp / test / slow / compilation / fpushclsmethod-unique-volatile.php
blob63a2f2e4325f33fe45537786509dbe67f9906335
1 <?hh
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);
10 function bar($i) { if (!$i) var_dump('here'); }
12 class Y extends X {}
13 } else {
14 apc_store('foo', 0);
17 function main($i) {
18 X::foo($i);
21 for ($i = 0; $i < 100; $i++) main($i);