/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

  1. <?hh
  2. function f($x) {
  3. include __FILE__;
  4. }
  5. <<__EntryPoint>>
  6. function main_entry(): void {
  7. if (isset($x)) {
  8. unset($x);
  9. $x = debug_backtrace();
  10. } else {
  11. f(10);
  12. print("Did not crash\n");
  13. }
  14. }