error_reporting at a local level?

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
LiveFree
Forum Contributor
Posts: 258
Joined: Tue Dec 06, 2005 5:34 pm
Location: W-Town

error_reporting at a local level?

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

last I checked, it was a global level setting.
Post Reply