Was deine err_get_last_str returned hab ich noch net so ganz geblickt
Auf jedenfall bekomme ich...
Code
Warning: implode(): Invalid arguments passed in /var/www/USER/sys_functions.php on line 43
1 -> No Error Message given -- Code : 00000 -- in /var/www/USER/usermanagement.php on line 242. Query: DELETE * FROM `blockedip` WHERE `id` = :id;
PHP: 43
return ($e=error_get_last())?FriendlyErrorType($e['type']).': '.$e['message'].' in '.$e['file'].' on line '.$e['line']:implode(', ',error_get_last());
PHP: 45
/**
* @param $e System Error
* @param $l Konstant Line of catch
* @param $f Konstant File of catch
* @param $q Failed query
*/
function generate_query_ErrorMessage($e,$l,$f,$q){
global $SYS;
if(empty($e[2])){ # wenn mal keine msg vorhanden, sondern nur der e-code
$e[2] = error_get_last_str();
if (empty($e[2])) {
$e[2] = "No Error Message given";
}
}
$SYS['conf']['db']['status'] = 1;
$SYS['conf']['db']['message'][] = $e[2]." -- Code : ".$e[0]." -- in ".$_SERVER['SERVER_NAME']." $f on line $l. Query: $q";
}
/**
* @param $e System Error
* @param $l Konstant Line of catch
* @param $f Konstant File of catch
*/
function generate_connect_ErrorMessage($e,$l,$f){
global $SYS;
$SYS['conf']['db']['status'] = 1;
$SYS['conf']['db']['message'][] = $e->getMessage()." in ".$_SERVER['SERVER_NAME']." $f on Line $l";
}
Alles anzeigen