PageRenderTime 111ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/hphp/test/zend/good/Zend/tests/debug_backtrace_limit.php

http://github.com/facebook/hiphop-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
  1. <?hh
  2. function a() {
  3. b();
  4. }
  5. function b() {
  6. c();
  7. }
  8. function c() {
  9. print_r(debug_backtrace(0, 1));
  10. print_r(debug_backtrace(0, 2));
  11. print_r(debug_backtrace(0, 0));
  12. print_r(debug_backtrace(0, 4));
  13. }
  14. a();