Arquivos
hhvm/hphp/test/vm/retval_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

31 linhas
454 B
PHP

<?php
class Bro {}
class Thing1 {
public function __destruct() {
$z = debug_backtrace();
//var_dump($z);
}
}
class Thing2 {
public function foo() {
$a = new Bro();
$ab = new Bro();
$abc = new Bro();
$abcd = new Bro();
$abcde = new Bro();
$abcdef = new Bro();
$z = new Thing1();
return 12;
}
}
function foo() {
echo "go\n";
$z = new Thing2();
return $z->foo();
}
echo "Returned: " . foo() . "\n";