]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
remove custom xmppdaemon error handler
authorEvan Prodromou <evan@prodromou.name>
Sat, 30 Aug 2008 16:21:28 +0000 (12:21 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sat, 30 Aug 2008 16:21:28 +0000 (12:21 -0400)
darcs-hash:20080830162128-84dde-430fae5f1a0be77db2860c4e6e1c68b961b0944d.gz

scripts/xmppdaemon.php

index 40f0c4274ae01f5530b253e0b3396035d69688d6..8c2e6c1688f2fd8630dd3c513cf0214e9f1cf4ad 100755 (executable)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-function xmppdaemon_error_handler($errno, $errstr, $errfile, $errline, $errcontext) {
-    switch ($errno) {
-     case E_USER_ERROR:
-               echo "ERROR: [$errno] $errstr ($errfile:$errline)\n";
-               echo "  Fatal error on line $errline in file $errfile";
-               echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")\n";
-               echo "Aborting...\n";
-               exit(1);
-               break;
-
-        case E_USER_WARNING:
-               echo "WARNING [$errno] $errstr ($errfile:$errline)\n";
-               break;
-
-     case E_USER_NOTICE:
-               echo "NOTICE [$errno] $errstr ($errfile:$errline)\n";
-               break;
-
-     default:
-               echo "Unknown error type: [$errno] $errstr ($errfile:$errline)\n";
-               break;
-    }
-
-    /* Don't execute PHP internal error handler */
-    return true;
-}
-
-set_error_handler('xmppdaemon_error_handler');
-
 # Abort if called from a web server
 if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
        print "This script must be run from the command line\n";