PageRenderTime 56ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/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
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  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. }