]> 4ch.mooo.com Git - test.git/blobdiff - lib/lib_common.php
modified: lib/lib_common.php
[test.git] / lib / lib_common.php
index 14dc1af5948d87ff78d9bb8040f37163402d75dd..80b45f6ea044b077953bace96fc64dea36b29c83 100755 (executable)
  * 更改 PHP 捕捉錯誤功能並顯示自訂錯誤
  */
 function PMCCore_errorHandler($errno, $errstr, $errfile, $errline){
-       header('Content-type: text/plain;charset=utf-8');
+       //---- header('Content-type: text/plain;charset=utf-8');
        switch($errno){
                case E_USER_ERROR:
                case E_ERROR:
-                       exit('Error: '.$errstr);
+                       print_r('Error: '.$errstr);
                        break;
                case E_WARNING:
                        print_r('Warning: '.$errstr.' '.$errfile.' #'.$errline);