Disables specific errors (like warnings or notices)

Run-time disabling of errors by specified type.

php
fork add to bundle source
function disable_errors_by_type( $type = E_WARNING ) { $level = error_reporting(); error_reporting($level & ~$type); }

usage

load_function('disable_errors_by_type'); disable_errors_by_type(); // will disable warnings disable_errors_by_type(E_NOTICE); // will disable notices
← how to use this in app?
create log ...inout