Update to core classes, see detail below
- config.inc: add define for show/not show all errors when parsning through Error.Handling.inc with SHOW_ALL_ERRORS - Error.Handling.inc: check php error level and do not show ones that are not flagged unless SHOW_ALL_ERRORS is set to true - db_pgsql.inc for fetch array, call the internal wrapper method, not the pg method directly - db_pgsql_pdo.inc: test insert for alternative with pdo lib instead of php internal postgresql interface - Class.DB.IO.inc: on prepared check if cursor exist before returing inserted id in INSERT queries. fail if no insert id could be aquired if there was no cursor (or other error) - Class.Basic.inc: rewrite Time to string method for speed up and removal of old php microtime format
This commit is contained in:
@@ -21,6 +21,10 @@
|
||||
// if this fails, it will print the data to the window via echo
|
||||
function MyErrorHandler ($type, $message, $file, $line, $context)
|
||||
{
|
||||
if (!(error_reporting() & $type) && !SHOW_ALL_ERRORS) {
|
||||
// This error code is not included in error_reporting
|
||||
return;
|
||||
}
|
||||
// ERROR LEVEL
|
||||
$error_level = array (
|
||||
1 => 'E_ERROR',
|
||||
|
||||
Reference in New Issue
Block a user