/hphp/test/quick/backtrace-after-unset.php
http://github.com/facebook/hiphop-php · PHP · 14 lines · 14 code · 0 blank · 0 comment · 2 complexity · 08623b36212d193e0e8417424f1f97d8 MD5 · raw file
- <?hh
- function f($x) {
- include __FILE__;
- }
- <<__EntryPoint>>
- function main_entry(): void {
- if (isset($x)) {
- unset($x);
- $x = debug_backtrace();
- } else {
- f(10);
- print("Did not crash\n");
- }
- }