From 625e7181c7713e6f02ac0ceb49929a797fc26f6e Mon Sep 17 00:00:00 2001 From: Matteo Nastasi Date: Mon, 10 Jul 2017 10:01:46 +0200 Subject: [PATCH] some debugging tool added --- web/spush/brisk-spush.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/web/spush/brisk-spush.php b/web/spush/brisk-spush.php index f814d00..fe3814f 100755 --- a/web/spush/brisk-spush.php +++ b/web/spush/brisk-spush.php @@ -40,6 +40,25 @@ require_once($G_base."briskin5/Obj/briskin5.phh"); require_once($G_base."briskin5/index.php"); require_once($G_base."briskin5/index_wr.php"); +if (FALSE) { +function my_e($number, $msg, $file, $line, $vars) { + print_r(debug_backtrace()); + die(); +} + +function my_for_fatal() +{ + // $error = error_get_last(); + // if ( $error["type"] == E_ERROR ) { + print_r(debug_backtrace()); + die(); + // } + // log_error( $error["type"], $error["message"], $error["file"], $error["line"] ); +} + +register_shutdown_function( "my_for_fatal" ); +set_error_handler('my_e'); +} function main($argv) { -- 2.17.1