[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/symfony/debug/Resources/ext/tests/ -> 002_1.phpt (source)

   1  --TEST--
   2  Test symfony_debug_backtrace in case of non fatal error
   3  --SKIPIF--
   4  <?php if (!extension_loaded('symfony_debug')) {
   5      echo 'skip';
   6  } ?>
   7  --FILE--
   8  <?php
   9  
  10  function bar()
  11  {
  12      bt();
  13  }
  14  
  15  function bt()
  16  {
  17      print_r(symfony_debug_backtrace());
  18  }
  19  
  20  bar();
  21  
  22  ?>
  23  --EXPECTF--
  24  Array
  25  (
  26      [0] => Array
  27          (
  28              [file] => %s
  29              [line] => %d
  30              [function] => bt
  31              [args] => Array
  32                  (
  33                  )
  34  
  35          )
  36  
  37      [1] => Array
  38          (
  39              [file] => %s
  40              [line] => %d
  41              [function] => bar
  42              [args] => Array
  43                  (
  44                  )
  45  
  46          )
  47  
  48  )


Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1