Always set PHP error reporting to E_ALL
by , 27 Mar 2009 at @ 23.22 (18227 Views)
I'm coding up a new PHP framework (called Tamarin) at the moment. I just added two lines of code that set PHP's error reporting to E_ALL when in development mode. Within 30 seconds I had located and correct 3 bugs I didn't even knew existed. Here's how you can turn on E_ALL in your scripts:
orPHP Code:error_reporting(E_ALL);
PHP Code:ini_set('error_reporting',E_ALL);









