// Fatal run-time errors. These indicate errors that can not be recovered from, such as a memory allocation problem. Execution of the script is halted.
caseE_CORE_ERROR:
// Fatal errors that occur during PHP's initial startup. This is like an E_ERROR, except it is generated by the core of PHP.
caseE_COMPILE_ERROR:
// Fatal compile-time errors. This is like an E_ERROR, except it is generated by the Zend Scripting Engine.
caseE_USER_ERROR:
// User-generated error message. This is like an E_ERROR, except it is generated in PHP code by using the PHP function trigger_error().
spip_log($error,'dd_php');
break;
}
}
// 1 - vérifier si on doit afficher les infos ou les logger