]> 4ch.mooo.com Git - test.git/commitdiff
modified: lib/lib_common.php
authorsparky4 <sparky4@4ch.irc.su>
Fri, 25 Feb 2011 09:19:15 +0000 (03:19 -0600)
committersparky4 <sparky4@4ch.irc.su>
Fri, 25 Feb 2011 09:19:15 +0000 (03:19 -0600)
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);