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

For the most part, PHP is very configurable about warnings and errors, or at least the FastCGI and mod_php setups respect that part of php.ini. You should be able to set it to something that will help you out.

The real problem is that between production-style settings and "I don't fucking care" developers, that in actual practice PHP is more like do anything you can to avoid dieing, even if that means doing something stupid. I have also known people to test on "Live" sites and turn off warnings on development machines. The responses from users are sometimes comical.

PHP is why I like the strongest possible type checking at compile and runtime, and why PHP would be my last choice of dynamic language for anything but a cheap web host or needing a PHP-based third party web app.
__________________
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