Topic awaiting preservation: PHP Error Reporting |
|
---|---|
Author | Thread |
Maniac (V) Mad Scientist From: :morF |
posted 02-06-2005 18:42
Now, we all know PHP has that wonderful function ERROR_REPORTING which allows us to specify what (if any) kinds of errors we want displayed in our script should something cock-up, but I am curious about something. What is the scope of it. Say I have my base PHP file that has a bunch of included scripts, and those included scripts have other included scripts and so on. If I specify ERROR_REPORTING(0) in the top-level one, does that filter down through all the others and turn off the display of errors in them too, or do I need to go through all of them and add that to the start of each and every file? |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 02-06-2005 19:32
I'm pretty sure setting it at the top of the file will filter through any included files. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 02-06-2005 20:58
indeed, it does filter through. |