"Fossies" - the Fresh Open Source Software Archive

Member "phplist-3.5.6/public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/Debug/Resources/ext/tests/002_1.phpt" (24 Jul 2020, 649 Bytes) of package /linux/www/phplist-3.5.6.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    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 )