note 3572 modified in error_reporting by ronabop
| From: | ronabop@php.net | Date: | Sun, 27 Aug 2000 10:15:03 +0000 |
| Subject: | note 3572 modified in error_reporting by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3433@lists.php.net to get a copy of this message | ||
I read somewhere that turning off error messages when you release your code is like taking off your
parachute after you jump out of the plane.
I would like to always use reporting level 8 - it speeds debugging immesely. Somewhat equivalent to
using to -w switch in Perl - which should ALWAYS be done. However there doesn't seem to be a
way to then test the existence/definition of a variable. i.e. I want to say
if (defined($HTTP_COOKIE_VARS["foo"])) { do something...}
I still get "Undefined index: foo" when the cookie has not been set yet. Duh - thats why I
asked if it was defined. So unfortunately I do have to lower the reporting level to get cookies to
work - since the warnings screw up the headers and thus the cookies themselves.
http://www.php.net/manual/function.error-reporting.php