Arquivos
hhvm/hphp/test/vm/debug_backtrace.php
T
Jordan Delong 363d1bb20f Code move src/ -> hphp/
This change is mostly for FB internal organizational reasons.
Building is not effected beyond the fact that the target now
lands in hphp/hhvm/hhvm rather than src/hhvm/hhvm.
2013-02-11 02:10:41 -08:00

35 linhas
578 B
PHP

<?php
class A {
static function foo() {
var_dump(debug_backtrace());
}
function bar($a, $b, $c = null) {
$this->foo();
}
}
function bar() {
$a = new A();
$a->bar(1, "str", array(1, 2, 3));
hphp_invoke_method($a, "A", "bar", array(1, 2));
}
function foo() {
call_user_func("bar");
}
function error_handler($errno, $errstr, $errfile, $errline, $errcontext, $extra) {
// Make sure this function shows up in a backtrace
var_dump(debug_backtrace());
}
function main() {
foo();
set_error_handler('error_handler');
$x = FakeConstant;
}
main();