Arquivos
hhvm/hphp/test/vm/closure_func_get_arg.php
T
ptarjan fd2f07d1f1 Revert allowing $this in closures
I'm going to do a replacement diff anyways, so all this does is delays it a week.
2013-03-09 12:49:43 -08:00

8 linhas
91 B
PHP

<?php
$a = 1;
$cl = function () use ($a) {
return func_get_arg(0);
};
var_dump($cl(2));