Arquivos
hhvm/hphp/test/quick/closure_recursive_bad.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

18 linhas
236 B
PHP

<?php
class A {
public function b() {
function c() {
return function() {
return $this->d();
};
};
return c();
}
private function d() {
return 91;
}
}
$a = new A;
$b = $a->b();
var_dump($b());