diff --git a/reference/errorfunc/functions/error-reporting.xml b/reference/errorfunc/functions/error-reporting.xml index 691a216c98..a63a442e3c 100644 --- a/reference/errorfunc/functions/error-reporting.xml +++ b/reference/errorfunc/functions/error-reporting.xml @@ -17,7 +17,9 @@ error_reporting directive at runtime. PHP has many levels of errors, using this function sets that level for the duration (runtime) of - your script. + your script. If the optional level is + not set, error_reporting will just return + the current error reporting level. @@ -50,7 +52,8 @@ &reftitle.returnvalues; Returns the old error_reporting - level. + level or the current level if no level parameter is + given.