error_reporting at a local level?
Posted: Fri Sep 15, 2006 5:43 pm
Hello,
I currently have this method
to set the error reporting in my framework. Is the call to error_reporting in any way, local or affecting anything else except the whole framework (everything 'extends' that class')
Thanks
I currently have this method
Code: Select all
public static function setErrorReporting($level) {
if (!is_string($level) && !is_int($level)) {
throw new CBException('Value passed to setErrorReporting is not valid!');
return;
}
error_reporting($level);
return;
}Thanks