Page 1 of 1

error_reporting at a local level?

Posted: Fri Sep 15, 2006 5:43 pm
by LiveFree
Hello,

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;
	}
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

Posted: Fri Sep 15, 2006 6:04 pm
by feyd
last I checked, it was a global level setting.