PHP Classes
elePHPant
Icontem

File: vendor/symfony/debug/Resources/ext/tests/002.phpt

Recommend this page to a friend!
  Classes of Dawood Ikhlaq  >  Recon Falcon  >  vendor/symfony/debug/Resources/ext/tests/002.phpt  >  Download  
File: vendor/symfony/debug/Resources/ext/tests/002.phpt
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Recon Falcon
Scan a list of pages to find unreachable links
Author: By
Last change:
Date: 3 months ago
Size: 918 bytes
 

Contents

Class file image Download
--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
                (
                )

        )

)