Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old June 5th, 2002, 12:40 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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

Reply With Quote
  #2  
Old June 5th, 2002, 01:10 PM
CmdrDats CmdrDats is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: <br><img src='http://www.dats.co.za/icon.gif'>
Posts: 269 CmdrDats User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to CmdrDats Send a message via AIM to CmdrDats Send a message via Yahoo to CmdrDats
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..

Reply With Quote
  #3  
Old June 5th, 2002, 10:47 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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)


Reply With Quote
  #4  
Old June 5th, 2002, 10:49 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Does the error checking include E_NOTICE?

or get rid of it with

error_reporting(0);

Reply With Quote
  #5  
Old June 6th, 2002, 07:54 AM
CmdrDats CmdrDats is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: <br><img src='http://www.dats.co.za/icon.gif'>
Posts: 269 CmdrDats User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to CmdrDats Send a message via AIM to CmdrDats Send a message via Yahoo to CmdrDats
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..


Reply With Quote
  #6  
Old June 6th, 2002, 08:13 AM
Smiley Smiley is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Australia
Posts: 30 Smiley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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?

Reply With Quote
  #7  
Old June 6th, 2002, 08:57 AM
CmdrDats CmdrDats is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: <br><img src='http://www.dats.co.za/icon.gif'>
Posts: 269 CmdrDats User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to CmdrDats Send a message via AIM to CmdrDats Send a message via Yahoo to CmdrDats
RE: Does the error checking include E_NOTICE?

Quote:
I will run your program with ALL error reporting on. This means all errors, warnings, and notices will be displayed. I don't like to see them.


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.. ;)

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > Does the error checking include E_NOTICE?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT