Commit c8909217 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #188 in ZP/z-push from feature/ZP-691-remove-legacy-stuff to develop

* commit 'bd22274f':
  ZP-691 Remove legacy stuff - rename custom error handler to zpush_error_handler.
  ZP-691 Remove legacy stuff - removed debugLog().
parents 89bc1043 bd22274f
......@@ -1810,7 +1810,7 @@ class BackendIMAP extends BackendDiff {
protected function cleanupDate($receiveddate) {
$receiveddate = strtotime(preg_replace("/\(.*\)/", "", $receiveddate));
if ($receiveddate == false || $receiveddate == -1) {
debugLog("Received date is false. Message might be broken.");
ZLog::Write(LOGLEVEL_DEBUG, "Received date is false. Message might be broken.");
return null;
}
......
......@@ -195,17 +195,11 @@ class ZLog {
* Legacy debug stuff
*/
// deprecated
// backwards compatible
function debugLog($message) {
ZLog::Write(LOGLEVEL_DEBUG, $message);
}
// E_DEPRECATED only available since PHP 5.3.0
if (!defined('E_DEPRECATED')) define(E_DEPRECATED, 8192);
// TODO review error handler
function zarafa_error_handler($errno, $errstr, $errfile, $errline, $errcontext) {
function zpush_error_handler($errno, $errstr, $errfile, $errline, $errcontext) {
$bt = debug_backtrace();
switch ($errno) {
case E_DEPRECATED:
......@@ -234,7 +228,7 @@ function zarafa_error_handler($errno, $errstr, $errfile, $errline, $errcontext)
}
error_reporting(E_ALL);
set_error_handler("zarafa_error_handler");
set_error_handler("zpush_error_handler");
function zpush_fatal_handler() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment