View Single Post
  #4   (View Single Post)  
Old 28th October 2010
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

Assuming you're lucky enough to be using PHP 5, you might want to append E_STRICT, which isn't included with E_ALL. YMMV with it however, and expressly with the nature of the codebase you're using. Note that PHP's E_STRICT is not quite the same as Perls use strict.

Good PHP code should be E_ALL and E_STRICT compliant, documented, and well covered by unit tests and the like. Don't underestimate the utility of good unit tests.

I assume you know all the stuff about controlling where it sends errors; so you ought to be able to judge what's most convenient for you.


Quote:
Originally Posted by Carpetsmoker View Post
If you have more info, please share. You would do me a huge favor.
Yeah, don't use PHP. I doubt I can do you that favour though :-(.


I might also add that the PHP chatter isn't quite on topic, hardy har haarr
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote