X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=brisk.git;a=blobdiff_plain;f=web%2Fspush%2Fbrisk-spush.php;h=00d3e64c8fb875f858198a624087707683b63217;hp=22def38e80a75ceb36e22e17e45f34dc6c2d0a75;hb=0b6452e28c5b16fbbde6191a6db4293905b808e3;hpb=c9cbae97b192a003007a9d7f655473c266ca49d8 diff --git a/web/spush/brisk-spush.php b/web/spush/brisk-spush.php index 22def38..00d3e64 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) { @@ -47,13 +66,13 @@ function main($argv) pid_save(); do { - if (($brisk = Brisk::create(LEGAL_PATH."/brisk-crystal.data", $G_ban_list, $G_black_list, $G_cloud_smasher, $G_provider_proxy)) == FALSE) { + if (($brisk = Brisk::create(LEGAL_PATH."/brisk-crystal.data", $G_ban_list, $G_black_list, $G_cloud_smasher)) == FALSE) { log_crit("Brisk::create failed"); $ret = 1; break; } - if (($s_a_p = Sac_a_push::create($brisk, USOCK_PATH, 0, 0, $argv)) === FALSE) { + if (($s_a_p = Sac_a_push::create($brisk, USOCK_PATH_PFX, 0, 0, $G_provider_proxy, $argv)) === FALSE) { $ret = 2; break; }