error_reporting()
function error_reporting(mixed $error_level = null): int
Gets or sets the active error reporting mask.
Parameters:
$error_level(mixed), defaultnull, optional
Returns: int
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/core/error_reporting.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how error_reporting is implemented in the compiler, see the internals page.