Arquivos
hhvm/hphp/test/vm/debug_backtrace_continuation.php
T
seanc 4a6ae52f5d Generators should show original name in backtrace
Use the original name instead of the outer name for generator
functions in backtraces
2013-04-01 13:46:30 -07:00

14 linhas
191 B
PHP

<?php
function my_generator() {
$value = yield null;
var_dump(debug_backtrace());
}
function my_wrapper() {
$gen = my_generator();
$gen->next();
$gen->send(null);
}
my_wrapper();