Closed Thread Icon

Topic awaiting preservation: PHP Error Reporting (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=24946" title="Pages that link to Topic awaiting preservation: PHP Error Reporting (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: PHP Error Reporting <span class="small">(Page 1 of 1)</span>\

 
Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted 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?


Justice 4 Pat Richard

Edit: damn docilebob's fat fingers!

(Edited by Skaarjj on 02-06-2005 18:43)

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 02-06-2005 19:32

I'm pretty sure setting it at the top of the file will filter through any included files.



.:[ Never resist a perfect moment ]:.

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 02-06-2005 20:58

indeed, it does filter through.
Unless, of course one of the included scripts calls php->error_reporting with something else than 0.

« BackwardsOnwards »

Show Forum Drop Down Menu