|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Does the error checking include E_NOTICE?
I have seen this brought up somewhere else in the forum but didn't see an answer. Cause most php setups have the error reporting as E_ALL & ~E_NOTICE.. I code accordingly. But, if you do let E_NOTICE errors come through then I throw up tons cause I rely on uninitialized variables and undefined offsets in arrays. Thanks
|
|
#2
|
|||
|
|||
|
RE: Does the error checking include E_NOTICE?
Yeah, from what i can understand it does..
You simply need to shift the way you code a bit. Using isset(), unset() and initializing all the indices of an array() properly.. i think that solves almost all the notices.. I think it's a bit silly, since php is a scripting language and is supposed to be 'loose', but hey.. rules are rules i suppose.. |
|
#3
|
|||
|
|||
|
RE: Does the error checking include E_NOTICE?
cant u just re-set the error level with
error_reporting(E_ALL ^ E_NOTICE); (i've never tried this) |
|
#4
|
|||
|
|||
|
RE: Does the error checking include E_NOTICE?
or get rid of it with
error_reporting(0); |
|
#5
|
|||
|
|||
|
RE: Does the error checking include E_NOTICE?
well, that would be cheating and Matt does skim through your code i think...
You might as well ask him to run your script with error reporting off.. |
|
#6
|
|||
|
|||
|
RE: Does the error checking include E_NOTICE?
You know there is nothing in the rules that prohibit you from doing so. It just says that it will be run with all reporting on, not that you cant override it.
I seem to remember somewhere that you can use any php at your disposal to accomplish the task. Surely then it's a valid option? |
|
#7
|
|||
|
|||
|
RE: Does the error checking include E_NOTICE?
Quote:
Okay. Let's get technical ;) He said that all errors, warnings, notices will be displayed, so if you make them not display (i could put the errors into a invisible layer too) it's against the rules... and then "run your program with ALL reporting on".. run it.. not start it.. There.. ;) |
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Older Contests > Does the error checking include E_NOTICE? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|