/hphp/test/quick/backtrace-after-unset.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
- <?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");
- }
- }