From: Janusz Dobrowolski Date: Mon, 1 Sep 2014 12:18:04 +0000 (+0200) Subject: PHP 5.4 warning on deprecated mysql api is ignored to avoid folld in errors file... X-Git-Tag: 2.3-final~118 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=fc56b3d05d72a071ad1a514b0d1ef976ef57f940;p=fa-stable.git PHP 5.4 warning on deprecated mysql api is ignored to avoid folld in errors file. This is safe to use it with 5.4 in FA 2.3 anyway, will be moved to mysqli in 2.4. --- diff --git a/includes/errors.inc b/includes/errors.inc index e59e14b0..0e8b2578 100644 --- a/includes/errors.inc +++ b/includes/errors.inc @@ -62,7 +62,8 @@ function error_handler($errno, $errstr, $file, $line) { // Please use restrainedly to not risk loss of important messages $excluded_warnings = array( 'html_entity_decode', 'htmlspecialchars', // nevermind encodings, special chars are processed anyway - 'should be compatible with that' // ignore cpdf/frontreport wrapper warnings + 'should be compatible with that', // ignore cpdf/frontreport wrapper warnings + 'mysql extension is deprecated' // ignore strict warning in 5.4 ); foreach($excluded_warnings as $ref) { if (strpos($errstr, $ref) !== false) {