[dokuwiki] Eliminating PHP Error Notices?
- From: Harry Fuecks <hfuecks@xxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Fri, 30 Sep 2005 22:19:51 +0200
What's the feeling (especially from Andi) about eliminating the code
which generates PHP Error notices?
A pros and cons as I see it;
- Con: code will get less elegant in some places, where extra checks
need to be added to make sure an array key exists etc.
- Pro: switching on E_NOTICE messages is something like "use strict;"
in Perl. "Good practice" although that in itself isn't a necassily a
reason. Do know there are people who want use an application that's
emitting E_NOTICEs.
- Pro: a real advantage - it's often alot easier to find / prevent
bugs when E_NOTICE is on. I've lost count of the number of times where
an E_NOTICE saved has me very long bug hunt.
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
Other related posts:
- » [dokuwiki] Eliminating PHP Error Notices?