Mercurial > hg > isophonics-drupal-site
view vendor/symfony/debug/Resources/ext/tests/002.phpt @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 7a779792577d |
children |
line wrap: on
line source
--TEST-- Test symfony_debug_backtrace in case of fatal error --SKIPIF-- <?php if (!extension_loaded('symfony_debug')) { echo 'skip'; } ?> --FILE-- <?php function bar() { foo(); } function foo() { notexist(); } function bt() { print_r(symfony_debug_backtrace()); } register_shutdown_function('bt'); bar(); ?> --EXPECTF-- Fatal error: Call to undefined function notexist() in %s on line %d Array ( [0] => Array ( [function] => bt [args] => Array ( ) ) [1] => Array ( [file] => %s [line] => %d [function] => foo [args] => Array ( ) ) [2] => Array ( [file] => %s [line] => %d [function] => bar [args] => Array ( ) ) )