Example #1
0
 function ipinga_shutdown()
 {
     // v6_debug::dump();
     \ipinga\cookie::set();
     @ob_end_flush();
     $error = error_get_last();
     if ($error !== NULL && $error['type'] == 1) {
         //        ob_end_clean();   // silently discard the output buffer contents.
         //        appSendMsgToVern('Error has occurred',$error);
         //        header( 'location:/fatal_error' );
         @ob_end_flush();
         // output what is stored in the internal buffer  (may not want this here in production)
         \ipinga\log::info(var_export($error, true));
         echo '<pre>' . var_export($error, true);
         //    v6_BackTrace();
         die('handleShutdown(): Cannot continue!');
     } else {
         @ob_end_flush();
         // output what is stored in the internal buffer
     }
 }