Arquivos
hhvm/hphp/test/quick/closure_recursive.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

19 linhas
263 B
PHP

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