/hphp/test/zend/good/Zend/tests/debug_backtrace_limit.php
PHP | 17 lines | 14 code | 3 blank | 0 comment | 0 complexity | ae907b1fd955b2f023455f8319e7be9b 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 a() {
- b();
- }
- function b() {
- c();
- }
- function c() {
- print_r(debug_backtrace(0, 1));
- print_r(debug_backtrace(0, 2));
- print_r(debug_backtrace(0, 0));
- print_r(debug_backtrace(0, 4));
- }
- a();