LLLLLLL Posted May 24, 2011 Share Posted May 24, 2011 I'm unclear about error_reprorting( level ): does this set the error level for the duration of the script, or does it persist until some other event (like calling it again)? The documentation seems to indicate that it lasts longer than the duration of the script, differing from, say, ini_set. I've had it work a couple different ways on different servers so I'm a bit confused. Quote Link to comment https://forums.phpfreaks.com/topic/237357-error_reporting/ Share on other sites More sharing options...
xyph Posted May 24, 2011 Share Posted May 24, 2011 The error_reporting() function sets the error_reporting directive at runtime. PHP has many levels of errors, using this function sets that level for the duration (runtime) of your script. If the optional level is not set, error_reporting() will just return the current error reporting level. Quote Link to comment https://forums.phpfreaks.com/topic/237357-error_reporting/#findComment-1219691 Share on other sites More sharing options...
LLLLLLL Posted May 24, 2011 Author Share Posted May 24, 2011 Mmm. I'm sorry I missed that. Although I'm pretty sure it didn't work that way on one server.... oh well, I'll have a look... Quote Link to comment https://forums.phpfreaks.com/topic/237357-error_reporting/#findComment-1219692 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.