sys_replevel [function]

sys_replevel([ level ])

returns the current reported error level and optionally sets a new one

The effects of this function are not reverted automatically at any moment (unless implemented manually with hooks).

old_level = sys_replevel( SGS_ERROR ); // report only errors or worse
magic = calculate_magic(); // any warnings are never processed at this point
sys_replevel( old_level ); // restore the old reported level