Arquivos
hhvm/hphp/test/vm/static_closure.php
T
ptarjan 6b61441bd9 more isStatic fixed for closures
The interpreter fix was different than the jit/ir fix because ##translateFPushObjMethodD()##'s ##i.inputs[0]->rtt.valueClass()## is null (with a TODO in the code to make it not null). It then goes into the slowpath.

Another one like this and I think I should have a different attribute for static closures :(
2013-03-25 12:44:12 -07:00

8 linhas
93 B
PHP

<?php
function a() {
$a = static function() { var_dump(true); };
$a->__invoke();
}
a();